很久以前,突然发现ntpdate有各种故障了,于是
于是找了个rdate
安装rdate
yum install rdate
rdate 用法
rdate [-p] [-s] [-u] [-l] [-t sec] [host…]
选项
-p Print the time returned by the remote machine.
-s Set the system time to the returned time.
-u Use UDP instead of TCP as the transport.
-l Use syslog to output errors (cron.warning) and output (cron.info).
-t Set timeout in seconds for every attempt to retrieve date.
rdate同步时间
rdate -s -u time.nist.gov
定时同步
0 */1 * * * /usr/bin/rdate -s time.nist.gov
- THE END -
0 条评论。