0

How I can setup my Linux server to automatically synchronize its server clocks? We need to ensure our server clocks set to correct time always.

5
Contributors
7
Replies
8
Views
8 Years
Discussion Span
Last Post by edenCC
0

Install and configure the NTP service (either the client, or if you want to be a local time source, the ntpd server as well) - how to do so depends on your distribution though. Its pretty painless on debian and redhat based systems.

Please tell me what distribution and version it is, and whether you have a GUI installed.

Edited by jbennet: n/a

2

apt-get install ntp will install a full ntp daemon or apt-get install ntpdate will install a lighter client-only tool.

Votes + Comments
helpful
0

thank you for your help!

No problem. Have marked this one as solved.

Note: When finding servers on the NTP pool site, choose two or three from the same country as you are in

0

The alternative way is to sync your system time on an hourly basis.

root# crontab -l
MAILTO=""
30 * * * * (/usr/sbin/ntpdate -s ntp.admon.org fr.pool.ntp.org)

Please keep note, you cannot use this crontab with a running NTP server instance.

Cheers,

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.