标签:分享 span 时间同步 执行 cron gre strong grep nbsp
1、设置NTP相关服务开机自启:
1 # chkconfig ntpd on 2 # chkconfig ntpdate on 3 # chkconfig |grep ntp

2、启动NTP服务:
# service ntpd start

3、定时任务设置:
1 # crontab -e 2 添加 3 */10 * * * * service ntpd stop; ntpdate 128.138.141.172; hwclock -w; service ntpd start

4、手动执行:
service ntpd stop; ntpdate 128.138.141.172; hwclock -w; service ntpd start

标签:分享 span 时间同步 执行 cron gre strong grep nbsp
原文地址:http://www.cnblogs.com/pzzning/p/6167324.html