タグ

ブックマーク / takanory.net (1)

  • ntp による時刻同期 — takanory.net

    時刻同期用のサーバは NICT 公開 NTP サービス というものがあるようなので、 ntp.nict.jp にします。 まずは ntp 関連のコマンドが入っていないので、インストールを行います。 # apt-get install ntp 次に、結構時間がずれているので、ntpupdate コマンドで時刻をざっくりと合わせます。 # ntpdate ntp.nict.jp 次に、/etc/ntp.conf を編集して設定を行い、ntpd を起動します。 # vi /etc/ntp.conf # /etc/init.d ntpd start /etc/ntp.conf の中身はこんな感じです。ntp.nict.jp を3つ書くのがポイントらしい。 server ntp.nict.jp server ntp.nict.jp server ntp.nict.jp driftfi

  • 1