解决乱码问题的方法如下:1、备份 cp etclocale.conf etclocale.conf.bak(推荐教程:centos使用教程)2、编辑配置文件vim etclocale.conf#LANG="zh_CN