1.设置ip域名
Vi /etc/hosts
192.168.233.140 quan01
2.设置机器名
hostnamectl set-hostname quan01
3.修改域名映射
vi /etc/hosts
192.168.233.129 quan01
192.168.233.130 quan01
192.168.233.131 quan01
4.固定IP地址
vi /etc/sysconfig/network-scripts/ifcfg-ens33
BOOTROTO=”static”
IPADDR=”192.168.233.140”
NETMASK=”255.255.255.0”
GATEWAY=”192.168.233.2”
DNS1=”114.114.114.114”
DNS2=”8.8.8.8”
(附注:部分镜像需加入ONBOOT="yes")
5.重启网络
systemctl restart network
6.测试
ping www.baidu.com -c 3
7.关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
8.更改安全机制
vi /etc/selinux/config
SELINUX=disabled
9.重启
reboot