HOW TO SETUP NTP IN CENTOS

You need to install the following packages:ntp, ntpdate,ntp-doc
sudo yum install ntp ntpdate ntp-doc

ntp1

ntp2

ntp3

Turn on NTP service
sudo chkconfig ntpd on

Synchronize the system clock with 0.pool.ntp.org server
sudo ntpdate pool.ntp.org

Start the NTP server
/etc/init.d/ntpd start

To verify whether NTP works properly, you can use the following commands
ntpq -p
date -R

ntp4

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s