ntp时钟同步

  服务器时间的一致性,很关键的。

11. 基于ntp服务的形式

[root@server0 ~]# yum -y install chrony   //NTP客户端    centos7.x  centos6.x  ntp
[root@server0 ~]# vim /etc/chrony.conf
server classroom.example.com iburst

[root@server0 ~]# systemctl enable chronyd
[root@server0 ~]# systemctl restart chronyd.service

22、基于定时任务形式的

yum install -y ntp

echo "0/20 * * * * ntpdate  ip &>/dev/null" >>/var/spool/cron/root

*/20 * * * * /usr/sbin/ntpdate ntpupdate.tencentyun.com >/dev/null &

相关地址:

http://www.ntp.org/

http://www.ntp.org.cn/index.html     #国内时钟服务器

原文地址:https://www.cnblogs.com/xiaochina/p/5699305.html