首页 > 其他 > 详细

centos 用ntpdate从时间服务器更新时间

时间:2016-12-06 04:37:05      阅读:247      评论:0      收藏:0      [点我收藏+]

1安装ntp

yum install ntp

2同步时间
ntpdate time.nuri.net

推荐几个时间服务器。
asia.pool.ntp.org
asia.pool.ntp.org
asia.pool.ntp.org
asia.pool.ntp.org

3 加入定时任务
vim /etc/crontab 加入
/10 * * * * ntpdate time.nuri.net  //每隔十分钟同步一次


centos 用ntpdate从时间服务器更新时间

原文:http://flyyoung.blog.51cto.com/9170074/1879755

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!