Categories
Uncategorized

NTP sync CentOS 7

install ntpd

yum install ntpdate ntp
systemctl start ntpd
systemctl enable ntpd
timedatectl set-ntp true

force resync ntp

service ntpd stop
ntpd -gq
timedatectl status

service ntpd start

sync status

ntpq -p
ntpstat

Leave a Reply

Your email address will not be published. Required fields are marked *