ntp – installation and configuration

You need to install the following packages:

  • ntp : ntpd server which continuously adjusts system time and utilities used to query and configure the ntpd daemon.
  • ntpdate : Utility to set the date and time via NTP.
  • ntp-doc : NTP documentation

Open the terminal or login over the ssh session. You must login as as the root user. Type the following yum command to install ntp:

Installation:

# yum install ntp ntpdate ntp-doc

Start the Services at start up:

# chkconfig ntpd on

Configuration ntpd:

# vi /etc/ntp.conf

Set public servers from the pool.ntp.org project:

server 0.rhel.pool.ntp.org
server 1.rhel.pool.ntp.org
server 2.rhel.pool.ntp.org

Start the ntpd services:

# /etc/init.d/ntpd start

Stop the ntpd services:

# /etc/init.d/ntpd stop

Restart the ntpd services:

# service ntpd restart

Satya Prakash

VOIP Expert: More than 8 years of experience in Asterisk Development and Call Center operation Management. Unique Combination of Skill Set as IT, Analytics and operation management.

Leave a Reply