Created
March 6, 2015 08:36
-
-
Save genediazjr/7f29516ac859469f8547 to your computer and use it in GitHub Desktop.
Keep server time updated
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install ntp | |
sudo nano /etc/ntp.conf | |
logfile /var/log/xntpd | |
driftfile /var/lib/ntp/ntp.drift | |
statsdir /var/log/ntpstats/ | |
statistics loopstats peerstats clockstats | |
filegen loopstats file loopstats type day enable | |
filegen peerstats file peerstats type day enable | |
filegen clockstats file clockstats type day enable | |
server 0.pool.ntp.org iburst dynamic | |
server 1.pool.ntp.org iburst dynamic | |
server 2.pool.ntp.org iburst dynamic | |
server 3.pool.ntp.org iburst dynamic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment