CentOS查看当前时区及修改默认时区的方式如下:
1.查看当前时区
date -R
2.修改时区
tzselect
执行上面的命令,然后按照提示进行操作,但是只能当前回话保存,如果想要永久保存,需要修改 ~/.bash_profile
,增加
TZ='Asia/Shanghai';
export TZ
如下:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
TZ='Asia/Shanghai';
export TZ
最新评论
小米手机现在是收不到,被拦截了
2.0有两个版本,区别是什么?
什么格式,用加https不
订阅域名单独出来咋设置,大佬们问一下,解析一个域名到后端ip设置填写一下就行了吗?