Centos7.4 部署NTP时间同步服务器

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时间可用
发布了73 篇原创文章 · 获赞 4 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/qq_27592485/article/details/103840621