原因:
在操作CneOS的时候发现下载软件,安装软件出现认证已经过期。经过排查,发现系统实际那与北京时间误差。
方案:
1,安装时间同步软件
yum install ntp -y
2,同步时间,ntp的服务器可以自己搜索,国内也有相应的服务器
ntpdate -u 0.centos.pool.ntp.org
3,查看当前的系统时间是否正确
date
补充:
国内常见的ntp服务器:
www.pool.ntp.org/zone/cn
cn.ntp.org.cn #中国
edu.ntp.org.cn #中国教育网
ntp1.aliyun.com #阿里云
ntp2.aliyun.com #阿里云
cn.pool.ntp.org #最常用的国内NTP服务器