在文件/etc/profile 添加 export LC_ALL=zh_CN.UTF-8 export LANG=zh_CN.UTF-8 设置完环境变量后重新使其生效下 source /etc/profile 完毕。