以谷歌提供的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同步时间命令