首页 > Linux操作系统 > Linux操作系统 > 时间同步 - rdate
同步时间:
1)在rac01上启动time-stream服务,并设置为自动开启
[root@rac01 ~]# chkconfig time-stream on
注意:
在redhat 4中命令是: #chkconfig time on
2)在rac02上添加任务,每一分钟和rac1进行一次时间同步。
[root@rac02 ~]# crontab -l
*/1 * * * * rdate -s 10.161.23.245
10.161.23.245 是节点1的IP地址。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/758322/viewspace-680693/ ,如需转载,请注明出处,否则将追究法律责任。