close

在Linux使用rdate同步內部server的時間:

1. 選定Time Server(ex: NIS server)後修改 /etc/xinetd/time檔案

disable = yes 改成 disable = no

2. 重啟xinetd:

service xinetd restart

3. 在client測試是否可正常取得Time Server的時間

rdate -p $Time_Server

4. 確認正常後在Client的cron job加入下列指令:

rdate -s $Time_Server

 

PS. 若是要使用NTP的方式可修改 /etc/ntp.conf再重啟ntpd service.

 

參考:

http://ecloud.org/index.php?title=Rdate_server

http://argray.org/unixfaq/timesync/ntp/index.html

http://csc.ocean-pioneer.com/docum/timed.html

 

2011/05/23 Update:

若要與Windows NTP server對時,使用 ntpdate -s NTP_server即可。

ex: /usr/sbin/ntpdate -s 172.23.123.4

arrow
arrow
    全站熱搜

    Eva 發表在 痞客邦 留言(0) 人氣()