
日時設定をきちんと行っておきたいです。
tzdataの再インストール
# yum reinstall -y tzdata
必要ないかも?
# vi /etc/sysconfig/clock ZONE="Asia/Tokyo" UTC=false
# ln -sf /usr/share/zoneinfo/Japan /etc/localtime
# localectl set-locale LANG=ja_JP.utf8 # timedatectl set-timezone Asia/Tokyo
rsyslogを再起動する必要があります。
# systemctl restart rsyslog
NTPのインストール
# yum install -y ntp
# vi /etc/ntp.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 -4 ntp.nict.jp server -4 ntp1.jst.mfeed.ad.jp server -4 ntp2.jst.mfeed.ad.jp server -4 ntp3.jst.mfeed.ad.jp
systemctl enable ntpd systemctl restart ntpd systemctl status ntpd
# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ntp-a2.nict.go. .NICT.           1 u    6   64    1    4.392   -1.988   0.000
 ntp1.jst.mfeed. 133.243.236.17   2 u    5   64    1    5.436   -1.612   0.000
 ntp2.jst.mfeed. 133.243.236.17   2 u    4   64    1    4.316   -2.340   0.000
 ntp3.jst.mfeed. 133.243.236.17   2 u    3   64    1    3.976   -2.749   0.00
一旦再起動させてから日時確認するのが設定漏れが少ない。
# reboot now
日時確認
# date Mon Apr 22 14:18:16 JST 2019




