今早进行linux同步时间报类似错:
root@test log]#
[root@test log]# ntpdate 192.168.43.2
6 Sep 09:35:09 ntpdate[30210]: the NTP socket is in use, exiting
[root@test log]#
由于该NTP进程已经存在,故报错,需要先停止NTP服务
root@test log]#
[root@test log]# ntpdate 10.154.8.200
6 Sep 09:35:09 ntpdate[30210]: the NTP socket is in use, exiting
[root@test log]#
root@test init.d]# pwd
/etc/rc.d/init.d
[root@test init.d]# ./ntpd stop
Shutting down ntpd: [ OK ]
[root@test init.d]# ntpdate 192.168.43.2
6 Sep 09:37:19 ntpdate[30658]: step time server 10.161.8.200 offset -51.869609 sec[@more@]