修改.bash_profile
#vi /root/.bash_profile
在文件末行插入
export LC_ALL=zh_CN.GBK
export LC_CTYPE=zh_CN.GBK
export LANG=zh_CN.GBK
然后保存文件
#:wq!
重启文件生效
#. .bash_profile
OK,中文乱码搞定
#vi /root/.bash_profile
在文件末行插入
export LC_ALL=zh_CN.GBK
export LC_CTYPE=zh_CN.GBK
export LANG=zh_CN.GBK
然后保存文件
#:wq!
重启文件生效
#. .bash_profile
OK,中文乱码搞定