How to manually configure ntpd and chronyd on RHEL 6/7/8
by Jephe Wu - http://linuxtechres.blogspot.com
Add below lines into /etc/chrony.conf or /etc/ntp.conf
server x.x.x.x iburst
server y.y.y.y iburst
Manually update time once
systemctl stop ntpd
ntpdate x.x.x.x
systemctl stop chronyd
chronyd -q 'server x.x.x.x iburst'
[root@server1 ]# chronyd -q 'server 192.168.1.100 iburst'
2021-11-25T05:08:34Z chronyd version 3.4 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +SECHASH +IPV6 +DEBUG)
2021-11-25T05:08:34Z Initial frequency -11.868 ppm
2021-11-25T05:08:38Z System clock wrong by 0.000087 seconds (step)
2021-11-25T05:08:38Z chronyd exiting
Show current ntp stauts
ntpq -pn
chronyc [-n] sources
No comments:
Post a Comment