Linux VPS同步时间命令

搬瓦工机场JMS

以谷歌提供的NTP服务为例

谷歌提供的NTP服务器,地址为time1-4.google.com

  • CentOS/RedHat:

yum install -y ntpdate

ntpdate time1.google.com

  • Debian/Ubuntu:

apt-get update

apt-get install ntpdate

systemctl disable ntp.service

systemctl stop ntp.service

ntpdate time1.google.com

这样就完成了时间的校正。

未经允许不得转载:搬瓦工VPS_美国VPS » Linux VPS同步时间命令

赞 (5) 打赏

相关推荐

    暂无内容!

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏