Last active
October 2, 2016 13:27
-
-
Save dungmanh88/23bfd32c26eccd09e45cd4d8527d98c9 to your computer and use it in GitHub Desktop.
Use chronyd as date time server
This file contains hidden or 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
For chrony client: | |
yum install chrony | |
vi /etc/chrony.conf | |
server NTP_SERVER iburst | |
systemctl enable chronyd.service | |
systemctl start chronyd.service | |
For chrony server: | |
yum install chrony | |
vi /etc/chrony.conf | |
server 0.centos.pool.ntp.org iburst | |
server 1.centos.pool.ntp.org iburst | |
server 2.centos.pool.ntp.org iburst | |
server 3.centos.pool.ntp.org iburst | |
allow 192.168.10.0/24 | |
systemctl enable chronyd.service | |
systemctl start chronyd.service | |
Check | |
chronyc tracking | |
chronyc sources |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment