LinuxServer

ntpサーバ

インストール

  • Ubuntu
    sudo apt install ntp

設定

  • sudo vi /etc/ntp.conf
    # Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
    # on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
    # more information.
    #pool 0.ubuntu.pool.ntp.org iburst
    #pool 1.ubuntu.pool.ntp.org iburst
    #pool 2.ubuntu.pool.ntp.org iburst
    #pool 3.ubuntu.pool.ntp.org iburst
    
    # Use Ubuntu's ntp server as a fallback.
    #pool ntp.ubuntu.com
    pool ntp.nict.jp iburst
# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

設定反映(ntp再起動), 確認

  • ntp再起動
    sudo systemctl restart ntp
  • 確認
    ntpq -p

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2023-01-26 (木) 20:30:27 (457d)