服务器Centos系统,时间不同步的解决办法

执行命令同步时间:

ntpdate time.nist.gov

执行过程中如果有报错:

 ntpdate[40052]: no server suitable for synchronization found

可以尝试下:

service ntpd start

如果没有安装ntpdate命令

yum install ntpl ntp