1.Centos6中系统时区时由/etc/localtime文件控制的,所以可以通过修改/etc/localtime文件来修改系统时区。查看当前系统的时区。将当前时区改为New_York时区,后面使用ln链接也可以换成cp /usr/share/zoneinfo/America/New_York /etc/localtime
2.Centos7中通过timedatectl set-timezone改时区
本文介绍了如何在CentOS 6和CentOS 7中更改系统时区。对于CentOS 6, 通过修改/etc/localtime文件实现时区调整;而在CentOS 7中,则采用timedatectl命令进行设置。
1.Centos6中系统时区时由/etc/localtime文件控制的,所以可以通过修改/etc/localtime文件来修改系统时区。查看当前系统的时区。将当前时区改为New_York时区,后面使用ln链接也可以换成cp /usr/share/zoneinfo/America/New_York /etc/localtime
2.Centos7中通过timedatectl set-timezone改时区
2940
5634

被折叠的 条评论
为什么被折叠?