chrony
説明 [#nb70c4e6]
CentOS7標準のchronyのインストール手順です。
インストール [#o62f7499]
# yum install chrony
# yum list installed | grep chrony
chrony.x86_64 1.29.1-1.el7.centos @base
# cd /etc/
# cp -p /etc/chrony.conf /etc/chrony.org
# vim /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
+ server ntp.jst.mfeed.ad.jp iburst
# systemctl start chronyd.service
# systemctl status chronyd.service
chronyd.service - NTP client/server
Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled)
Active: active (running) since 火 2015-07-14 16:13:50 JST; 5s ago
同期確認 [#l676128e]
# chronyc sources
210 Number of sources = 1
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^* ntp3.jst.mfeed.ad.jp 2 6 77 29 -7069ns[ -103us] +/- 122ms
自動起動設定 [#z33e5088]
# systemctl list-unit-files | grep chronyd
chronyd.service disabled
# systemctl enable chronyd.service
# systemctl list-unit-files | grep chronyd
chronyd.service enabled