Ubuntu 18.04 の時計同期のサーバーを日本のサーバーに変更

Sponsored Links

Ubuntuはデフォルトで ntp.ubuntu.comのサーバーを使って時刻の同期してます
それを ntp.nict.jp(日本のサーバー)に変更する方法

terminalにて↓下記コマンド

sudo sed -i ‘s/#NTP=/NTP=ntp.nict.jp/g’ /etc/systemd/timesyncd.conf

Ubuntu再起動で反映

同期が正常か確認は terminalにて↓下記コマンド

systemctl -l status systemd-timesyncd

terminalに表示されるStatusでSynchronized to time serverがntp.nict.jpならばOK

タイトルとURLをコピーしました