Ensure CentOS has the right time

By default, the ntp service is not installed with CentOS 6.
First, install ntp from yum:

yum install ntp

Then, force a time sync by running the following command:

ntpdate 0.us.pool.ntp.org

Next, make sure the service is turned on at next boot:

chkconfig ntpd on

Finally, start the ntdp service:

service ntpd start

Be the first to comment

Leave a Reply

Your email address will not be published.


*