故障描述:centos
centos下使用以下命令手动同步服务器时间api
#/usr/sbin/ntpdate ntp.api.bz
出现“the NTP socket is in use, exiting”错误。如图:服务器
8 Nov 09:57:02 ntpdate[4726]:the NTP socket is in use, exiting
问题分析:socket
出现该错误的缘由是系统ntpd服务器正在运行中,经过 ps aux | grep ntpd 查看,会看到ntpd正在运行。ide
解决方法:spa
#service ntpd stoporm
#/usr/sbin/ntpdate ntp.api.bz
ci