Quantcast
Channel: 钻戒 and 仁豆米
Viewing all articles
Browse latest Browse all 290

CentOS7安装事项

$
0
0

这是第一次安装CentOS 7,跟6有些区别,记录一下

首先是安装界面,按tab键来选参数:

然后就是输入text,没空图形界面安装:

之后叽里咕噜一大堆,出来9个选项:

Software就选Minimal install,Network需要配配,文件系统就选btrfs。

安装......

安装完第一件事是配网卡,网卡默认居然是不启动,万恶啊,把一下5项配好:

# vi /etc/sysconfig/network-scripts/ifcfg-ens3
...
BOOTPROTO=static  
ONBOOT=yes  
IPADDR=172.16.11.6  
PREFIX=23  
GATEWAY=172.16.11.254  
...

重启network

service network restart  

网络通了。

然后安装net-tools,否则ifconfig命令没有,太别扭了

yum install -y net-tools  

关了selinux

sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config  
setenforce 0  

关了iptables

systemctl stop firewalld.service  
systemctl disable firewalld.service  

哇,天下太平了。


Viewing all articles
Browse latest Browse all 290

Trending Articles