#author("2023-01-26T20:30:26+09:00","default:dramsukohome","dramsukohome")
[[LinuxServer]]

#shadowheader(1,"ntpサーバ");

#contents




* インストール [#c7df38d0]
-Ubuntu
 sudo apt install ntp




* 設定 [#a8a980e0]
- 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再起動), 確認 [#n9e28347]
- ntp再起動
 sudo systemctl restart ntp
- 確認
 ntpq -p

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS