1. 登录机器使用date命令查看。
2. 执行如下命令:
#echo -e "0.asia.pool.ntp.org\n1.asia.pool.ntp.org\n2.asia.pool.ntp.org\n3.asia.pool.ntp.org\n210.72.145.44">/etc/ntp/step-tickers
#ntpdate -u 0.asia.pool.ntp.org
#echo -e "server 0.asia.pool.ntp.org prefer\nserver 1.asia.pool.ntp.org\nserver 2.asia.pool.ntp.org\nserver 3.asia.pool.ntp.org\nserver 210.72.145.44">>/etc/ntp.conf
#service ntpd start
#chkconfig --level 35 ntpd on
3. 使用date查看时间是否已经同步到国家标准授时时间
原文链接:https://www.qiquanji.com/post/7090.html
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

微信扫码关注
更新实时通知