Update/Sync time on CentOS

We will use the NTP daemon to update or sync the time of our CentOS server (or other Linux server).

Make sure it is installed:

yum install ntp

Then, start the daemon:

chkconfig ntpd on

Now let’s update the time and date:

ntpdate pool.ntp.org

If you get the error Can’t adjust the time of day: Operation not permitted, you probably use a VPS.

 

Author Bio

Thank you for your interest in my blog! On this miniblog, I write mostly short (technical) blog posts that might interest other people. Read more about me or feel free to contact me.

 

Leave a Reply

Your email address will not be published. Required fields are marked *