CentOS Linux 6 / 7 :
[root@host ~]# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
cp: overwrite ‘/etc/localtime’? y
接着使用 date -R 命令即可查看到当前时间处于东八区:
[root@host ~]# date -R
Tue, 21 May 2019 10:55:08 +0800
此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据。
发表评论?