Skip to content

Instantly share code, notes, and snippets.

@wokamoto
Created July 3, 2015 00: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 wokamoto/eba7349a744fad5099f7 to your computer and use it in GitHub Desktop.
Save wokamoto/eba7349a744fad5099f7 to your computer and use it in GitHub Desktop.
ntpd アップデートして slew mode に
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