在/etc/profile最后加入一行命令 export LANG=zh_CN.UTF-8 连接的时候字符编码改成utf-8即可。 修改文件只读:sudo chmod +w /etc/profile 转载于:https://www.cnblogs.com/M2Lan/p/3926573.html