Jump to content
Sign in to follow this  
YongSan

Configure an NTP Client on the Cloud Server Linux

Recommended Posts

1. install ntpdeamon (if not installed already)

# yum install ntp

2. Simply open /etc/ntp.conf file, enter:

# vi /etc/ntp.conf

3. Replace the lines which starts with "server" with the below ones (Eg:- server ntp.server.com)

server 0.sg.pool.ntp.org
server 1.sg.pool.ntp.org
server 2.sg.pool.ntp.org
server 3.sg.pool.ntp.org

4. Add cron job to sync the time automatically.

# echo '30 * * * * root /usr/sbin/ntpd -q -u ntp:ntp' > /etc/cron.d/ntpd

View the full article

Share this post


Link to post
Share on other sites
Sign in to follow this  

×