Created
May 26, 2014 15:41
-
-
Save mingder78/b4ab9b8943e137c76a8a to your computer and use it in GitHub Desktop.
set server timer to ROC time zone
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
# 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