修改为UTC+8

1
cp -pf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

附加

查看当前时区

1
cat /etc/localtime

查看当前系统时间

1
date -R