127.0.0.1
c) 开启服务
hwclock --set --date="02/14/2017 11:24:00"
hwclock ?Cs
通过service crond status/stop/start 来查看crontab的定时服务是否开启
(集群的每个节点必须开启crontab)
各节点服务器设置与主节点时间同步:
手工同步:
/usr/sbin/ntpdate rtw01
定时同步,没3分钟同步一下:
[root@centosX ~]# crontab -e
*/3 * * * * /usr/sbin/ntpdate rtw01 每隔3分钟执行一次
3 * * * * /usr/sbin/ntpdate rtw01 每时3分钟时候执行一次,一次间隔1小时
对于新增加的节点机器,需要配置crontab ?Ce 使集群的时间保持一致性。 |
相关推荐:
用网页来实现修改服务器系统时间
linux下如何更改服务器的系统时间
设置时间服务器
以上就是两种liunx 修改服务器时间的方式的详细内容,更多文章请关注木庄网络博客!
相关阅读 >>
更多相关阅读请进入《liunx》频道 >>