Monday 12 September 2011

Synchronize System Clock in RHEL/CentOS 5

Services in Linux like cron and kerberos relies on an accurate and synchronized clock. This article describes how to synchronize the system clock with an NTP server.

Configure NTP (GUI)

This section describes how to configure the NTP using the Date & Time GUI tool.
1. Click System, select Administration and click Date & Time.
2. In the Date/Time Properties window, click the Network Time Protocol tab.
3. Check Enable Network Time Protocol. Next click Show advanced options and check Synchronize system clock before starting service. Finally, click OK.

Configure NTP (Console)

Listed below are the commands to configure the NTP. You need to have root level access to use the commands below.
  • /usr/sbin/ntpdate pool.ntp.org
    immediately synchronizes the system clock. Make sure the ntpd service is not running before using this command.
  • /sbin/service ntpd start
    starts the ntpd service
  • /sbin/service ntpd stop
    stops the ntpd service
  • /etc/ntp.conf
    the above is not a command, it is the location of the ntpd configuration file



Sony ICF-C318 Automatic Time Set Clock Radio with Dual Alarm (Black)
Emerson CKS3528 SmartSet Dual Alarm Clock Radio with Jumbo 1.3-Inch LED Display and Time Projector (Silver)

    No comments:

    Post a Comment

    Do not post irrelevant comments, please!

    Browser Name:
    Browser Version:
    Browser Code Name:
    User-Agent: