# 1.修改IP
$ vi /etc/sysconfig/network-scripts/ifconfig-etho
# 修改IP为自己虚拟机IP段的固定IP:
BOOTPROTO=static
IPADDR=192.168.111.11
# 2.设置主机名
$ vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=node01
#1.防火墙
# 查看防火墙状态
$ firewall-cmd --state
# 停止firewall
$ systemctl stop firewalld.service
# 禁止firewall开机启动
$ systemctl disable firewalld.service
#2.关闭selinux
$ vi /etc/selinux/config
# 修改
SELINUX=disable
# 修改IP主机映射
$ vi /etc/hosts
192.168.111.11 node01
192.168.111.12 node02
192.168.111.13 node03
# 下载ntp
$ yum install ntp -y
# 修改ntp时间设置
$ vi /etc/ntp.conf
# 添加
server ntp1.aliyun