首页 > 其他 > 详细

NTP时间同步

时间:2018-01-13 00:03:14      阅读:231      评论:0      收藏:0      [点我收藏+]
利用NTP+crontab实现时间同步
ntp server
编辑配置文件
vi/etc/ntpd.conf
server cn.ntp.org.cn
server edu.ntp.org.cn

server 127.127.1.0
fudge 127.127.1.0 stratum 10
启动服务并加入开机qidong
service ntpd start
chkconfig ntpd on

在其他ntp客户端
crontab -e
59 23 * /usr/sbin/ntpdate -u 10.1.0.12>>/tmp/time.log

启动crontab并开机启动
service crond start
chkconfig crond on

NTP时间同步

原文:http://blog.51cto.com/13491150/2060456

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