1. 界面安装
重启reboot
[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens192
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens192
UUID=d06ef1c4-cc10-4f3f-a483-f84480fb267e
DEVICE=ens192
ONBOOT=yes
IPADDR=192.168.10.13
GATEWAY=192.168.10.1
NETMASK=255.255.252.0
DNS1=8.8.8.8
2. 基础配置
yum -y install vim wget curl bash-complation
systemctl stop firewalld && systemctl disable firewalld
systemctl stop NetworkManager && systemctl disalbe NetworkManager
setenforce 0 && getenforce
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config