# centos修改时区 ## - 查看时区 ``` date -R ``` ## - 修改时区 ```bash ## centos7??? timedatectl set-timezone Asia/Shanghai # centos6 cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime ```