Here’s how to auto-sync the clock of your CentOS box:

  1. if not yet installed, install the ntp package
    # yum install ntp
  2. Turn on Service
    # chkconfig ntpd on
  3. Synchronize the system clock with 0.pool.ntp.org server
    # ntpdate pool.ntp.org
  4. Start the NTP deamon
    # /etc/init.d/ntpd start
  5. You’re done!