> Linux故障 >

CentOS同步时间提示“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,时区是西部地区的时区)

(责任编辑:IT)