Skip to content

Instantly share code, notes, and snippets.

@mingder78
Created May 26, 2014 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mingder78/b4ab9b8943e137c76a8a to your computer and use it in GitHub Desktop.
Save mingder78/b4ab9b8943e137c76a8a to your computer and use it in GitHub Desktop.
set server timer to ROC time zone
# set the server time to ROC
sudo mv /etc/localtime /etc/localtime.bak
sudo ln -s /usr/share/zoneinfo/ROC /etc/localtime
sudo service ntpd restart
# sync to ntpd server time
sudo ntpd -q
# start ntpd after reboot
sudo chkconfig ntpd on
# cf: ntpd --list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment