Ubuntu 20.04配置ntp client:

默认有安装systemd-timesyncd,手动安装下ntpdate

vi /etc/systemd/timesyncd.conf

NTP=ntp.ming.com

:wq

重启服务:

systemctl restart systemd-timesyncd

手动同步:

ntpdate -s ntp.ming.com

查看同步状态:

timedatectl timesync-status