Last Updated: February 25, 2016
·
1.22K
· dtommasino

Update the time on Centos

It's common practice to use NTP to keep your server time in sync. Before starting up the NTP service for the first time you can use the ntpdate command to sync the time:

ntpdate server 0.centos.pool.ntp.org

Now start the NTP service and it should keep the time in sync:

sudo service ntpd start