部分Linux时区改为东八区的方法

直接上命令

 

 

CentOS:

timedatectl set-timezone Asia/Shanghai
timedatectl status

date

 

 

Alphine:

apk add tzdata && cp -r -f /usr/share/zoneinfo/Hongkong /etc/localtime

date

 

 


posted @ 2018-11-03 11:06  剑握在手  阅读(4721)  评论(0编辑  收藏  举报
返回顶部↑