NTP Flashcards
1
Q
Synchronize time using other NTP peers
A
Synchronize time using other NTP peers.
If you didn’t already set up a time server, learn how to configure a NTP server.
1. Install the NTP package: # yum install -y ntpd
2. Edit the /etc/ntp.conf file and comment the following lines if you don’t want to use the default timeservers: #server 0.centos.pool.ntp.org #server 1.centos.pool.ntp.org #server 2.centos.pool.ntp.org
- In the same file, add the name (or IP address) of your time server:
server timeserver
4. Check the system date: # date
5. If the system date is more than 15 minutes away from real time, set up the date from your time server: # ntpdate timeserver
6. Activate the NTP service: # chkconfig ntpd on
7. Start the NTP service: # service ntpd start
8. Check that the service is working properly: # ntpq -p