[root@localhost wj]# ntpdate aliyun.com
16 Aug 10:07:03 ntpdate[20193]:
the NTP socket is in use, exiting //
如果遇到此错误,请按照下面的方式执行
[root@localhost wj]#
lsof -i:123
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ntpd
20187
ntp 16u IPv4 262711 0t0 UDP *:ntp
ntpd 20187 ntp 17u IPv6 262712 0t0 UDP *:ntp
ntpd 20187 ntp 18u IPv4 262718 0t0 UDP localhost:ntp
ntpd 20187 ntp 19u IPv4 262719 0t0 UDP 192.168.0.119:ntp
ntpd 20187 ntp 20u IPv6 262720 0t0 UDP localhost:ntp
ntpd 20187 ntp 21u IPv6 262721 0t0 UDP [fe80::a00:27ff:fe14:3357]:ntp
[root@localhost wj]#
kill -9 20187 //
杀掉上面的进程
[root@localhost wj]#
ntpdate 202.112.29.82
16 Aug 10:13:21 ntpdate[20212]: adjust time server 202.112.29.82 offset 0.006454 sec
|