アフォでも出来る

アフォでも出来るように記録します(IT系)

OCIでサーバー構築(NTPサーバー)

NTPd インストール

# sudo yum -y install ntp

# sudo mv /etc/ntp.conf /etc/ntp.conf.org

# sudo 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

# systemctl is-enabled ntpd.service

# ntpq –p

左端に*のものがあれば同期OK