linux同步时间提示“the NTP socket is in use”

在使用ntpdate同步时间的时候,若出现“the NTP socket is in use,exiting”,即可按以下方法解决。

一、先关闭ntpdate

service ntpdate stop

二、然后再执行时间同步

ntpdate us.pool.ntp.org

三、最后再看看时间是否正确

date

若出现时区不对导致时间不同的问题(如使用美国VPS,时区是西部地区的时区),请参考《XenSystem VPS时间和时区修改方法



转载内容请注明出处: 转载自V5.Net(原文:https://v5.net/CentOSApp/CentOS-Ntp-use.html