NTP时钟同步
安装NTP服务端
yum安装
yum install ntp -y
修改时钟同步server-使用阿里时钟同步
vi /etc/ntp.conf
restrict 10.88.22.0 mask 255.255.255.0 nomodify notrap
restrict 10.88.23.0 mask 255.255.255.0 nomodify notrap
restrict 10.88.30.0 mask 255.255.255.0 nomodify notrap
server ntp.aliyun.com iburst
server 127.0.0.1 iburst
fudge 127.0.0.1 stratum 10
开防火墙
firewall-cmd --zone=public --add-service=ntp --permanent
firewall-cmd --reload
启动
systemctl start ntpd
systemctl restart ntpd
设置自启动
systemctl enable ntpd
安装客户端(ntp安装同上)
修改ntp配置
vi /etc/ntp.conf
server ntp服务ip iburst