安装ntp服务时间同步软件

    1. yum -y install ntp

    然后开启服务:

    1. systemctl start ntpd
    2. systemctl enable ntpd

    与阿里云服务器同步时间:

    1. ntpdate ntp.aliyun.com

    最后使用

    date

    验证即可