- 追加された行はこの色です。
- 削除された行はこの色です。
*ntp [#f886405a]
RIGHT:更新日 &lastmod();
**ntpのインストール [#d367d227]
$ tar zxvf ntp-4.1.74.tar.gz
$ cd ntp-4.1.74.tar.gz
$ ./configure
$ make
$ su
# make install
# cd /etc
***ntp.confを修正 [#pc1b2b2c]
driftfile /etc/ntp/drift
server ntp.matsusaka-u.ac.jp
# multicastclient # listen on default 224.0.1.1
をコメントアウト
''以下のコマンドで時刻修正''
# /usr/local/bin/ntpdate -s -b ntp.matsusaka-u.ac.jp
-s:syslog(3)にlogを送る。
-b:Always step the time
このままではBIOSにセットされないので、
# clock -w
でBIOSにセットまた、BIOSの時刻表示は
# clock
''デーモン起動''
# /usr/local/bin/ntpd (-A) <---- -Aが必要?
でデーモン起動
# ps -ax
15658 ? SL 0:00 /usr/local/bin/ntpd -A
# /usr/local/bin/ntpq -p
で起動確認
remote refid st t when poll reach delay offset jitter
==============================================================================
sakura.matsusak 210.199.20.13 4 u 38 64 1 0.219 4.744 0.001
時間が経ち安定すると
remote refid st t when poll reach delay offset jitter
==============================================================================
*sakura.matsusak 210.199.20.13 4 u 2 64 377 0.206 -0.694 0.125
のように先頭に*が入る。
''クライアント''
# /usr/sbin/ntpdate ntp.mie-chukyo-u.ac.jp
Looking for host ntp.mie-chukyo-u.ac.jp and service ntp
host found : secure.mie-chukyo-u.ac.jp
5 Mar 09:08:07 ntpdate[705]: step time server 192.244.75.26 offset -42.322690 sec
となる
&color(red){エラー時};
5 Mar 09:07:48 ntpdate[694]: no server suitable for synchronization found
DE JE2ISM 2003/04
--------------------------------------------------------------------------------
RIGHT:[[元ページ:http://wwwism.dyndns.org/hp/linux/ntp.htm]]