CentOS install and configure NTP to synchronize the system clock

Type the following command to install ntp:

[[email protected] ~] # yum install ntp

Turn on the service

[[email protected] ~] # chkconfig ntpd on

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

[[email protected] ~] # ntpdate pool.ntp.org

Start the ntp:

[[email protected] ~] # /etc/init.d/ntpd start

Check the time:

[[email protected] ~] # date

Check if the bios clock matches the system clock:

[[email protected] ~] # hwclock

Set the bios clock to match the system clock

[[email protected] ~] #hwclock --systohc

Set the ntp time servers in the file /etc/ntp.conf (the ntp servers will begin with: server)

Leave a Reply

Your email address will not be published. Required fields are marked *