Created
June 1, 2015 03:38
-
-
Save 7kfpun/cbea94ed5f0187d5dde0 to your computer and use it in GitHub Desktop.
NTP
This file contains 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
Installation | |
------------ | |
# sudo apt-get install ntp | |
Configuration | |
------------- | |
Edit /etc/ntp.conf and reload by `sudo service ntp reload` | |
server 0.ubuntu.pool.ntp.org | |
server 1.ubuntu.pool.ntp.org | |
server 2.ubuntu.pool.ntp.org | |
server 3.ubuntu.pool.ntp.org | |
View status | |
----------- | |
# sudo ntpq -p | |
Force update time immediately | |
----------------------------- | |
sudo service ntp stop | |
sudo ntpd -gq | |
sudo service ntp start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment