yum -y install chrony
vim /etc/chrony.conf
- server ntp1.aliyun.com iburst
- bindacqaddress 0.0.0.0
- allow 0/0 //允许所有人使用我的时间服务器
- cmdallow 127.0.0.1 //控制指令
systemctl restart chronyd
netstat -antup | grep chronyd
chronyc sources -v //出现*号代表NTP时间可用
yum -y install chrony
vim /etc/chrony.conf
systemctl restart chronyd
netstat -antup | grep chronyd
chronyc sources -v //出现*号代表NTP时间可用