赞
踩
Linux系统处理
1、查询系统时间
登录服务器,输入
date
2、修改时区
输入命令:
tzselect
依次选择4-Asia,9-China,1-Beijing Time (注意标号,会变)
3、生效
输入
echo "TZ='Asia/Shanghai';export TZ" >> ~/.bash_profile
source ~/.bash_profile
date # 再次查看
非当前用户时区修改:
TZ='Asia/Shanghai'; export TZ
# 添加上一行内容到/etc/profile(所有用户生效,需要root权限)
# 或者~/.bash_profile(当前用户生效)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。