在环境变量文件.bash_profile添加以下代码:bash
export LC_ALL="zh_CN.GBK" export LANG="zh_CN.GBK"
保存文件后,使用命令:source .bash_profile或者. .bash_profile生效环境变量spa