Skip to content

Instantly share code, notes, and snippets.

@dungmanh88
Last active October 2, 2016 13:27
Show Gist options
  • Save dungmanh88/23bfd32c26eccd09e45cd4d8527d98c9 to your computer and use it in GitHub Desktop.
Save dungmanh88/23bfd32c26eccd09e45cd4d8527d98c9 to your computer and use it in GitHub Desktop.
Use chronyd as date time server
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