//这里演示的是设置东八区
TZ='Asia/Shanghai'; export TZ 添加到/etc/profile
source profile
date -R 重新运行,可以看到最后已经变成了 +0800