NTPD - Network Time Protocol (NTP) daemon (Debian GNU/Linux etch)

サーバーの時計を外部の時刻サーバー(debian.pool.ntp.org)と同期させます。
(LAN内のクライアントPC用の時刻サーバーにもなります)

インストール方法

# apt-get install ntp ntp-server

同期確認

行頭に * がついているサーバーに同期している

# ntpq -pn
     remote           refid      st t when poll reach   delay   offset  jitter

==============================================================================
+88.198.48.3     131.188.3.221    2 u   30   64   37  297.209    0.115   0.300
-64.242.84.204   192.83.249.28    4 u   64   64   37  118.672    9.926   0.549
*216.27.160.99   .GPS.            1 u   28   64   37  195.423   -4.126   0.697
+128.10.252.10   128.10.252.6     2 u   54   64   37  176.646  -14.077   0.245

設定

# vi /etc/ntp.conf

ログ

# grep ntpd /var/log/daemon.log

▲ページ先頭へ

スポンサード リンク