我正在尝试更改使用NTP
的服务器VMware Esxi hypervisor
。
我使用的系统是:
[root@machine:~] esxcli system version get
Product: VMware ESXi
Version: 6.0.0
Build: Releasebuild-7967664
Update: 3
Patch: 84
我运行了以下命令:
[root@machine:~] ps | grep ntp
21974404 21974404 ntpd
=>ntpd
服务正在运行。
[root@machine:~] cat /etc/ntp.conf
restrict 127.0.0.1
restrict default kod nomodify notrap noquery
driftfile /etc/ntp.drift
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
=> 我将最后三行添加到/etc/ntp.conf
.
[root@machine:~] /etc/init.d/ntpd restart
Stopping ntpd
watchdog-ntpd: Terminating watchdog process with PID 21974394
Starting ntpd
=> 我重新启动了ntpd
服务。
[root@machine:~] ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
halmahera.ordim .INIT. 16 u - 128 0 0.000 0.000 0.000
orb.pstam.ovh .INIT. 16 u - 128 0 0.000 0.000 0.000
likho.oneyed.mo .INIT. 16 u - 128 0 0.000 0.000 0.000
=> 尽管我添加了{0, 1, 2}.pool.ntp.org servers
in /etc/ntp.conf
,但 NTP 服务器似乎并未实际被替换。
你能帮我更改这些服务器吗?
此致。
编辑1
[root@machine:~] ps aux | grep ntpd
ps: no non-option arguments
ps
-C Display only cartels
-P Display PCID
-T Display used time
-c Display verbose command line
-g Display session ID and process group
-i Display summary information
-j Display GID
-n Display nChildren (only with --tree)
-N Display nThreads (only with --tree)
-s Display state
-t Display type
-u Display only userworlds
-U [N] Display [only] userspace ID
-v Display non truncated values
-Z Display the security domain
-z Display zombie cartels
-J or --tree Display userworlds in a tree layout
[root@machine:~] ntpq -c rv
ntpq: read: Connection refused