Last active
May 10, 2016 01:36
-
-
Save lilongen/4bb7cfb89f46cde76bdd0dbcb07db173 to your computer and use it in GitHub Desktop.
enable ntp on centos
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
* install ntp | |
yum install ntp | |
* edit /etc/ntp.conf | |
server 0.pool.ntp.org | |
server 1.pool.ntp.org | |
server 2.pool.ntp.org | |
* enable ntp service | |
centos 7 | |
systemctl enable ntpd | |
systemctl start ntpd | |
centos 6 | |
chkconfig ntpd on | |
service ntpd start | |
* Synchronize the node. | |
ntpdate -u <your_ntp_server> | |
* Synchronize the system clock (to prevent synchronization problems). | |
hwclock --systohc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment