关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

centos6更改系统时区

发布时间:2021-09-14 15:37:52

修改时区配置文件

vi /etc/sysconfig/clock

ZONE="Asia/Shanghai"

 

链接到上海时区

rm -rf /etc/localtime

ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

 

查看时区已经更改

cat /etc/sysconfig/clock

The time zone of the system is defined by the contents of /etc/localtime.

This file is only for evaluation by system-config-date, do not rely on its

contents elsewhere.

ZONE="Asia/Shanghai"



/template/Home/Zkeys/PC/Static