NTPサーバー構築2008/08/24 |
時刻合わせのためのntpサーバーを構築します。 |
ns:~# aptitude install ntp Reading package lists... Done Building dependency tree... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done Building tag database... Done The following NEW packages will be installed: ntp 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 330kB of archives. After unpacking 868kB will be used. Writing extended state information... Done Get:1 http://ftp.jp.debian.org etch/main ntp 1:4.2.2.p4+dfsg-2 [330kB] Fetched 330kB in 0s (984kB/s) Selecting previously deselected package ntp. (Reading database ... 18575 files and directories currently installed.) Unpacking ntp (from .../ntp_1%3a4.2.2.p4+dfsg-2_i386.deb) ... Setting up ntp (4.2.2.p4+dfsg-2) ... Starting NTP server: ntpd. ns:~# mv /etc/ntp.conf /etc/ntp.conf.bk ns:~# vi /etc/ntp.conf # 同期をとるサーバーを指定 server ntp1.jst.mfeed.ad.jp server ntp2.jst.mfeed.ad.jp server ntp3.jst.mfeed.ad.jp ns:~# /etc/init.d/ntp restart Stopping NTP server: ntpd. Starting NTP server: ntpd. ns:~# ntpq -p # 動作確認 remote refid st t when poll reach delay offset jitter ================================= ntp1.jst.mfeed. 210.173.160.86 2 u 2 64 1 21.227 -475.55 0.001 ntp2.jst.mfeed. 210.173.160.86 2 u 1 64 1 21.400 -475.53 0.001 ntp3.jst.mfeed. 210.173.160.86 2 u - 64 1 22.087 -476.08 0.001 |