我最近设置了一个运行 NTPD 的 CentOS 6.x 系统,当我运行时遇到此错误ntpq -pn:
$ ntpq -pn
ntpq: read: Connection refused
Run Code Online (Sandbox Code Playgroud)
我知道ntpd通过以下ntpstat命令启动并运行:
$ ntpstat
synchronised to NTP server (204.11.201.12) at stratum 3
time correct to within 71 ms
polling server every 256 s
Run Code Online (Sandbox Code Playgroud)
为什么ntpq -pn不工作?