在使用ntpdate同步时间的时候,若出现“the NTP socket is in use,exiting”,即可按以下方法解决。
一、先关闭ntpdate
service ntpdate stop
二、然后再执行时间同步
ntpdate us.pool.ntp.org
三、最后再看看时间是否正确
date
若出现时区不对导致时间不同的问题(如使用美国VPS,时区是西部地区的时区),请参考《XenSystem VPS时间和时区修改方法》
在使用ntpdate同步时间的时候,若出现“the NTP socket is in use,exiting”,即可按以下方法解决。
service ntpdate stop
ntpdate us.pool.ntp.org
date
若出现时区不对导致时间不同的问题(如使用美国VPS,时区是西部地区的时区),请参考《XenSystem VPS时间和时区修改方法》