FreeBSD

NTP による時刻の同期


時刻あわせのために ntpd を起動します。/etc/rc.conf に
ntpd_enable="YES"
を追加し、/etc/ntp.conf を
server	ntp.kncn.net
と作成します。
ntp.kncn.net はローカル環境に立てた ntp server です。こちらでも /etc/rc.conf に
ntpd_enable="YES"
を追加し、/etc/ntp.conf を
server	210.173.160.27	# ntp1.jst.mfeed.ad.jp
server	210.173.160.57	# ntp2.jst.mfeed.ad.jp
server	210.173.160.87	# ntp3.jst.mfeed.ad.jp
peer	127.127.1.0
と作成しています。ntp?.jst.mfeed.ad.jp についてはこちらをご覧ください。ドリフトファイルはしばらくたつと /var/db/ntp.drift に自動で作成されるようです。