Since DMIT has blocked most of the NTP Server for security reason, we need to choose appropriate NTP Server.

At present, the useable NTP Server is only provided by Google, which address is time1-4.google.com

  • CentOS/RedHat:

yum install -y ntpdate

ntpdate time1.google.com

  • Permanently(CentOS 6/RedHat 6/Debian/Ubuntu):

 1. install the "ntp" via package manger

 2. edit "/etc/ntp.conf"

 3. replace the "0-3.centos.pool.ntp.org" or other NTP server with "time1-4.google.com" line by line.

 4. enable the autostart for ntpd (CentOS 6/RedHat 6: chkconfig ntpd on; service ntpd start     Debian/Ubuntu: systemctl enable ntpd; systemctl restart ntpd)

  • Permanently(CentOS 7/RedHat 7):

1. edit "/etc/chrony.conf"

2. replace the "0-3.centos.pool.ntp.org" or other NTP server with "time1-4.google.com" line by line.

3. exec the command "systemctl enable chronyd; systemctl restart chronyd; chronyc sources -v" to check sync status.

4. reboot the OS and check again with "date -R"

PS. If your server is allocated with IPv6 but it's unusable, please change to IPv4 prefer (add or modify /etc/gai.conf to uncomment the line "precedence ::ffff:0:0/96  100").

  • Debian/Ubuntu:

apt-get update

apt-get install ntpdate

systemctl disable ntp.service

systemctl stop ntp.service

ntpdate time1.google.com

Then we has finished time synchronization.

  • 6 Users Found This Useful
Was this answer helpful?
Related Articles
How to use the SSH Key to login to the VM
Connecting to a server using an SSH key from a Windows client Download and run the PuTTY SSH...
How to generate SSH RSA Key
Creating an SSH key on Windows The simplest way to create SSH key on Windows is to use PuTTYgen....
How to convert RSA Private Key to Putty Private Key .ppk
Converting SSH keys for WinSCP If you want to use WinSCP as an SFTP client to connect to your...
Reset root password when system didn't install cloud-init pulgin
Access the Control Panel section of your server in the customer portal and follow these steps....
Upgrade Guide For VM Migrated from SVM Platform(Order before Jan 2019)
Doing this to keep your VM running well in the new platform. 1.     Prepare: ·       For how...