array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } 111string(0) "" int(1) int(10) int(70) int(8640000) string(13) "likecs_art_db" array(1) { ["query"]=> array(1) { ["match_all"]=> object(stdClass)#31 (0) { } } } array(1) { ["createtime.keyword"]=> array(1) { ["order"]=> string(4) "desc" } } int(10) int(0) int(8640000) array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } CentOS7 系统时间与实际时间相差8个小时,并却使用yum同步时间失败 CentOS7 系统时间与实际时间相差8个小时 - 爱码网
yolai

今天突然看CentOS7 与自己电脑的时间相差8个小时, 所以就百度搜了一下,这里做一下记录,解决方法如下: 

1. 查看CentOS7 的系统时间

命令: timedatectl

 

2. 查看系统时间区

命令: ls /usr/share/zoneinfo/

 

3. 删除当前系统所处的分区

命令: sudo rm /etc/localtime

 

4. 创建软连接以替换当前的时区信息

命令: sudo ln -s /usr/share/zoneinfo/Universal /etc/localtime

 

5. 再次查看系统时间

命令: sudo timedatectl

 

分类:

技术点:

相关文章: