重启ntpd无效,解决办法:
先查看ntp.conf的属性 lsattr /etc/ntp.conf
1、关闭selinux
2、restorecon -R -v /etc/ntp.conf
service ntpd restart
就可以了。
[root@host-192-168-144-49 etc]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
*85.199.214.100 .GPS. 1 u 27 64 1 277.072 11.119 0.394
time.dan.me.uk 82.148.230.254 2 u 26 64 1 264.806 28.641 0.792
marla.ludost.ne .INIT. 16 u - 64 0 0.000 0.000 0.000
ntp4.itcomplian 5.103.128.88 3 u 24 64 1 284.819 5.173 0.072
LOCAL(0) .LOCL. 5 l 33 64 1 0.000 0.000 0.000
\
本文转自gaodi2002 51CTO博客,原文链接:http://blog.51cto.com/gaodi2002/1971671