the NTP socket is in use, exiting
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了the NTP socket is in use, exiting相关的知识,希望对你有一定的参考价值。
在ntpdate同步时间的时候出现“the NTP socket is in use, exiting”
故障描述:
rhel5下使用如下命令手动同步服务器时间
#/usr/sbin/ntpdate 192.168.1.10
出现“the NTP socket is in use, exiting”错误。如下:
1 Nov 08:53:41 ntpdate[16201]: the NTP socket is in use, exiting
问题分析:
出现该错误的原因是系统ntpd服务器正在运行中,通过 ps aux | grep ntpd 查看,会看到ntpd正在运行。
ntp 16265 0.0 0.0 23388 5028 ? SLs 08:54 0:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
root 16267 0.0 0.0 23388 1668 ? S 08:54 0:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
root 16270 0.0 0.0 61148 744 pts/1 S+ 08:54 0:00 grep ntpd
解决方法:
NTP服务被占用导致计划任务未成功执行,停止NTP服务,再执行ntpdate同步命令,同步成功。
#service ntpd stop
#/usr/sbin/ntpdate 192.168.1.10
以上是关于the NTP socket is in use, exiting的主要内容,如果未能解决你的问题,请参考以下文章
使用ntpdate命令同步服务器时间出现“the NTP socket is in use, exiting”
解决Linux 服务器ntpdate同步时间报错 the NTP socket is in use, exiting
线上生产环境同步时间服务器时报错the NTP socket is in use, exiting
Linux中使用ntpdate同步失败报错:14 Apr 08:42:12 ntpdate[1255]: the NTP socket is in use, exiting:解决方法.