Skip to content

Instantly share code, notes, and snippets.

@wokamoto
Created July 3, 2015 00:43
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/85049d6abf3b9c90ecc9 to your computer and use it in GitHub Desktop.
Save wokamoto/85049d6abf3b9c90ecc9 to your computer and use it in GitHub Desktop.
1. ntpd update
$ sudo yum update ntp
2. ntpd stop
$ sudo service ntpd stop
3. kernel retention time・clear frequency offset
$ sudo ntptime -s 0 -f 0
4. change ntpd slew mode boot options
$ sudo sed -i -e 's/OPTIONS="\(.*\)\-g"/OPTIONS="\1\-g \-x"/' /etc/sysconfig/ntpd
5. ntpd start
$ sudo service ntpd start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment