How to Synchronize Time with NTP on CloudCone Servers
You can follow this guide to synchronize the time on your CloudCone server.
- First, you would need to ensure to have ntpdate installed on your server. Log in to your server via VNC and run the following command to install;
[root@cloudcone ~]$ apt-get install ntpdate```
|| [On CentOS/RHEL]
```[root@cloudcone ~]$ yum install ntpdate```
* Then, you can run the following command to synchronize the time on your server;
```[root@cloudcone ~]$ ntpdate -u ntp.cloudcone.com
- After running the command, you should receive a prompt with the updated time like the example below;
16 Apr 09:35:56 ntpdate[10212]: adjust time server 173.82.15.22 offset -0.000841 sec
undefined[root@cloudcone ~]$ nano /etc/ntp.conf
- After entering the above command, you will see the list of ntp pool servers listed. Create a new line above the first ntp server and add ntp.cloudcone.com to the list like the examples below;
# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
# more information.
pool ntp.cloudcone.com iburst
pool 0.ubuntu.pool.ntp.org iburst
pool 1.ubuntu.pool.ntp.org iburst
pool 2.ubuntu.pool.ntp.org iburst
pool 3.ubuntu.pool.ntp.org iburst
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server ntp.cloudcone.com iburst
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst
- Save the new file with Ctrl+O [Write Out] and exit the editor [Ctrl+X];
Updated on: 04/17/2020
Thank you!