Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Login as the root user Type the following command to install ntp

# yum install ntp

Turn on service
# chkconfig ntpd on

Synchronize the system clock with 0.pool.ntp.org server:


# ntpdate pool.ntp.org

Start the NTP:


# /etc/init.d/ntpd start

To install the ntp, just enter this command at the terminal: sudo yum install ntp

To make the ntpd start at boot time, use this commands: sudo chkconfig ntpd on

After installation, edit the default ntp configuration: sudo nano /etc/ntp.conf

Commented out/remove the default CentOS servers,you can add your own time-servers here to synchronize with, http://www.pool.ntp.org/zone/europe or http://www.pool.ntp.org/zone/north-america lists:

After you are done with the configuration, just start the ntp service: sudo service ntpd start

To check if the NTP service is synchronizing: sudo ntpq -pn

To check the synchronization log: sudo tail -f /var/log/messages

Geeky Comparison with Windows clock after synchronization:

Hope this will help you!

You might also like