初期費用無料、月額990円から、高速・多機能・高安定レンタルサーバー『エックスサーバー』
NTP サーバーの構築
taisuke@ubuntuserver:~$ sudo apt -y install ntpsec
taisuke@ubuntuserver:~$ sudo vi /etc/ntpsec/ntp.conf
24行目#tos minclock 4 minsane 3
34行目デフォルト設定はコメントにして使用したい NTP サーバーを追記
#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.
#server ntp.ubuntu.com
pool ntp.nict.jp iburst
taisuke@ubuntuserver:~$ sudo systemctl restart ntpsec
動作確認
taisuke@ubuntuserver:~$ sudo ntpq -p
ntp.nict.jpで時刻が設定されていればokです。
初期費用無料、月額990円から、高速・多機能・高安定レンタルサーバー『エックスサーバー』
ubuntu 24.04 LTSで自宅サーバー構築(NTPsecの設定)
Last updated at Posted at 2024-08-10
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme