ntpのインストール | # yum -y install ntp Setting up Install Process Setting up Repo: base repomd.xml 100% |=========================| 1.1 kB 00:00 Setting up Repo: updates-released repomd.xml 100% |=========================| 951 B 00:00 Reading repository metadata in from local files base : ################################################## 2622/2622 updates-re: ################################################## 528/528 Nothing to do # yum clean packages ←パッケージのクリア |
|
ntpサーバの設定 | # mv /etc/ntp.conf /etc/ntp.conf.org ←オリジナルのコピー # vi /etc/ntp.conf
|
|
ntpサーバの起動 | # ntpdate clock.nc.fukuoka-u.ac.jp ←手動にて設定 21 Jan 09:53:28 ntpdate[18111]: step time server 133.100.9.2 offset -430.258240 sec # /etc/init.d/ntpd start ntpd を起動中: [ OK ] # ntpq -p ←時刻同期の確認 remote refid st t when poll reach delay offset jitter ============================================================================== clock.nc.fukuok .GPS. 1 u 24 64 1 53.611 -7.000 0.002 clock.tl.fukuok .GPS. 1 u 23 64 1 55.728 -7.213 0.002 # date 2005年 1月 21日 金曜日 09:55:46 JST # chkconfig ntpd on |