Search This Blog

Tuesday, September 11, 2012

Configure NTP to synchronize the system clock in CENTOS/RHEL/FEDORA




CENTOS/RHEL/FEDORA: Configure NTP to synchronize the system clock


/* First install NTP on your system */
# yum install ntp

/* Now turn on NTP service */
# chkconfig ntpd on

/* synchronize your system clock with in.pool.ntp.org server */
# ntpdate  in.pool.ntp.org       //NTP server for India

/* Now start the NTP  Service*/
# /etc/init.d/ntpd start

/* Setting up a cronjob to sync automatically with NTP server every hour */
# crontab –e    // This will open a crontab file

/* Write the following line in the crontab file */
0 */1 * * * ntpdate  in.pool.ntp.org

/* Now save and close crontab file */



No comments:

Post a Comment