CentOS7 (NTPサーバーインストール)

ファイヤーウォールに引き続き

NTPサーバーのインストール

yum -y install ntp
mv /etc/ntp.conf /etc/ntp.conf.org
vi /etc/ntp.conf

 

下記を記入

driftfile /var/lib/ntp/drift
server ntp1.jst.mfeed.ad.jp iburst
server ntp2.jst.mfeed.ad.jp iburst
server ntp3.jst.mfeed.ad.jp iburst

 

NTPd起動と自動起動を設定

ntpdate ntp1.jst.mfeed.ad.jp
systemctl start ntpd.service
systemctl enable ntpd.service