安装(一般都有,可以省略) apt-get install locales 生成中文环境 locale-gen zh_CN.UTF-8 设置环境变量 vim ~/.profile LANG=zh_CN.UTF-8 LC_ALL=zh_CN.UTF-8 source ~/.profile eof