查看系统当前时间:
    [root@localhost ~]# date -R
    image.png
    查看当前时区:
    image.png

    客户端同步NTP时间:
    [root@localhost ~]# yum -y install ntp
    [root@localhost ~]# vim /etc/ntp.conf 增加ntp服务器的server,注释掉默认server服务

    1. # Use public servers from the pool.ntp.org project.
    2. # Please consider joining the pool (http://www.pool.ntp.org/join.html).
    3. server *.9.9.122 iburst
    4. # server 0.centos.pool.ntp.org iburst
    5. # server 1.centos.pool.ntp.org iburst
    6. # server 2.centos.pool.ntp.org iburst
    7. # server 3.centos.pool.ntp.org iburst

    [root@localhost ~]# systemctl start ntpd
    [root@localhost ~]# systemctl enable ntpd
    [root@localhost ~]# systemctl status ntpd

    查看服务器同级设备列表:
    [root@localhost ~]# ntpq -p
    image.png
    同步系统时间至硬件:
    [root@localhost ~]# hwclock —systohc