時刻合わせ

はじめに

NTPを使って時刻を合わせます。

# emerge -avt ntp
# vi /etc/ntp.conf
server ntp-tk01.ocn.ad.jp
server ntp-tk02.ocn.ad.jp
server ntp1.jst.mfeed.ad.jp
server ntp2.jst.mfeed.ad.jp
server ntp3.jst.mfeed.ad.jp
server ntp.ring.gr.jp
#server pool.ntp.org
# vi /etc/conf.d/ntp-client
#NTPCLIENT_OPTS=" -b -u pool.ntp.org"
NTPCLIENT_OPTS=" -b -u ntp-tk01.ocn.ad.jp"
# /etc/init.d/ntpd start
# rc-update add ntpd default
# /etc/init.d/ntp-client start
# rc-update add ntp-client default

参考:Gentoo基盤サーバ NTP設定ガイド プロバイダ別 ntp サーバリスト

スポンサード リンク

トラックバック

トラックバックURL
https://linux-life.net/tb/gentoo/server/ntp/
Linux Life 〜 No linux, No life 〜
Gentoo Linux > サーバー > 時刻合わせ