#author("2025-03-23T07:05:52+09:00","default:dramsukohome","dramsukohome") #author("2025-03-23T07:06:29+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 * ntp serverを指定して手動同期 [#t08ef267] + sudo systemctl stop ntpd + sudo ntpdate ntp.nict.jp + sudo systemctl start ntpd + sudo ntpq -p * ntpdig: no eligible servers [#i0f0a155] - [[上記のコマンド:#q4be02ba]]を再実行 - [[上記のコマンド>#q4be02ba]]を再実行