(1)设置日期 date -s 20190315 (2)设置时间 date -s 15:23:34 (3)设置日期和时间 date -s “20190315 15:12:23” 自动同步时间 yum install ntpdate -y ntpdate cn.ntp.org.cn 如果报错 the NTP socket is in use, exiting 运行 service ntpd stop 关闭服务后再运行 ntpdate cn.ntp.org.cn