systemctl status systemd-timesyncd.service

#add ntp server, comment out line #NTP and specify your ntp server
vi /etc/systemd/timesyncd.conf
[Time]
NTP=your-ntp-name or ip
#FallbackNTP=ntp.ubuntu.com
#RootDistanceMaxSec=5
#PollIntervalMinSec=32
#PollIntervalMaxSec=2048


systemctl restart systemd-timesyncd

systemctl status systemd-timesyncd.service


---
see also:
https://www.server-world.info/en/note?os=Ubuntu_22.04&p=ntp&f=3

computer2know :: thank you for your visit :: have a nice day :: © 2024