码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-12-06 04:39:14      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:ntpdate

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从时间服务器更新时间

标签:ntpdate

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

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