一.查看系统时区
timedatectl | grep "Time zone"
二.修改时区
1.删除文件
rm -rf /etc/localtime
2.重新链接文件
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
三.查看结果
timedatectl | grep "Time zone"
一.查看系统时区
timedatectl | grep "Time zone"
二.修改时区
1.删除文件
rm -rf /etc/localtime
2.重新链接文件
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
三.查看结果
timedatectl | grep "Time zone"