Tuesday, July 23, 2013

CentOS Sync time from NTP server

First we need to install NTP service.

To install NTP

yum install ntp

Now Synchronize the system clock with pool.ntp.org server

ntpdate pool.ntp.org

You can auto start NTP service during system startup

chkconfig ntpd on

Finally Start the NTP service

service ntpd start