linux中文乱码

第一步安装中文字符集:
yum -y groupinstall chinese-support
centos7的字符集配置文件为 /etc/locale.conf
vim /etc/locale.conf 将LANG=”XXXX” 改为LANG=”zh_CN.UTF-8”
centos7之前的版本改/etc/sysconfig/i18n

posted @ 2017-12-19 16:07  kevin77777  阅读(135)  评论(0)    收藏  举报