问题
尝试使用NTP同步时间。
sudo ntpdate -b pool.ntp.org
出现这个错误,表示NTP套接字正在使用,如何修复这个问题?
18 Jan 05:53:49 ntpdate[21340]: the NTP socket is in use, exiting
答案1
表明你有一个NTP守护进程正在运行,通常是通过ntp
包运行,
首先停止正在运行的NTP守护进程:
sudo service ntp stop
运行ntpdate
命令。
再次启动NTP守护进程:
sudo service ntp start