Created
July 3, 2015 00:41
-
-
Save wokamoto/eba7349a744fad5099f7 to your computer and use it in GitHub Desktop.
ntpd アップデートして slew mode に
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
1. ntpdをアップデート | |
$ sudo yum update ntp | |
2. ntpdを停止 | |
$ sudo service ntpd stop | |
3. kernelの保持時刻・周波数オフセットをクリアする | |
$ sudo ntptime -s 0 -f 0 | |
4. ntpdをslewモードで起動するように起動オプションを変更する | |
$ sudo sed -i -e 's/OPTIONS="\(.*\)\-g"/OPTIONS="\1\-g \-x"/' /etc/sysconfig/ntpd | |
5. ntpdを開始 | |
$ sudo service ntpd start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment