码迷,mamicode.com
首页 > 系统相关 > 详细

Linux下ntp时间同步

时间:2017-05-24 21:06:08      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:退出   同步   crond   tab   时间   style   service   star   font   

root用户下执行

先安装同步时间软件,每台机器执行

yum install -y ntp

然后执行以下命令:

crontab -e

*/10 * * * * /usr/sbin/ntpdate -u time.nist.gov

然后保存退出 esc  :wq

service crond restart

验证:过十分钟后 所有节点时间和网络时间同步 date命令查看

Linux下ntp时间同步

标签:退出   同步   crond   tab   时间   style   service   star   font   

原文地址:http://www.cnblogs.com/atomicbomb/p/6900802.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!