chrony

説明

CentOS7標準のchronyのインストール手順です。

インストール

# 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 

同期確認

# 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

自動起動設定

# systemctl list-unit-files | grep chronyd
chronyd.service                             disabled
# systemctl enable chronyd.service 
# systemctl list-unit-files | grep chronyd
chronyd.service                             enabled

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-06-30 (木) 01:40:11