Skip to content

Instantly share code, notes, and snippets.

@7kfpun
Created June 1, 2015 03:38
Show Gist options
  • Save 7kfpun/cbea94ed5f0187d5dde0 to your computer and use it in GitHub Desktop.
Save 7kfpun/cbea94ed5f0187d5dde0 to your computer and use it in GitHub Desktop.
NTP
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