服务器时间同步

版权声明:该版权归博主个人所有,在非商用的前提下可自由使用 https://blog.csdn.net/qq_24696571/article/details/85534715

安装ntp服务:

用ntp来做时间同步,它会到时间服务器里去同步时间,保证了时间的准确度。

  • 安装ntp服务:yum install ntpdate -y
  • 时间同步命令:ntpdate cn.ntp.org.cn

该命令表示为:到域名为cn.ntp.org.cn的时间服务器上同步时间。
注:全球的时间服务器有很多个,可以到百度或谷歌上搜,不一定用cn.ntp.org.cn的时间服务器。

猜你喜欢

转载自blog.csdn.net/qq_24696571/article/details/85534715