天天看点

linux时钟_修改时区-Asia/shanghai

1. date查看时间

$ date
           

2. 修改/etc/profile

$ vim /etc/profile
           

增加:export TZ=‘Asia/Shanghai’

3. 生效

$ source /etc/profile
           

4. date查看时间,验证是否时区正确

$ date
           

继续阅读