强制 NTP 对服务器时间进行同步的命令

使用下面的命令可以对服务器时间进行同步:ntpdate pool.ntp.org服务器输出:[root@smart yum.repos.d]# ntpdate pool.ntp.org 6 Dec 15:45:38 ntpdate[2110]: the NTP socket is in use, exiting [root@smart yum.repos.d]#