If you want to synchronize the system clock in your CentOS Linux box, you can install and configure NTP (Network Time Protocol, a means of transmitting time signals over a computer network).
step 1: install ntp
1 |
# yum install ntp |
step 2: Turn on NTP service
1 |
# chkconfig ntpd on |
step 3: Synchronize the system clock with 0.pool.ntp.org server
1 |
# ntpdate pool.ntp.org |
step 4: Start the NTP service
1 |
# /etc/init.d/ntpd start |