CentOS 7.0中文乱码(方框)的解决方法
-----------------版本信息[root@localhost ~]$ cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)
[root@localhost ~]$ uname -m
x86_64
[root@localhost ~]$ uname -r
3.10.0-123.el7.x86_64
[root@localhost ~]$ uname -a
Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]$
-------------centos7解决中文乱码问题
[root@localhost ~]# cat /etc/locale.conf
LANG=en_US.UTF-8
[root@localhost ~]# cp /etc/locale.conf /etc/locale.conf_bak
[root@localhost ~]# vim /etc/locale.conf
LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"
~
~
~
[root@localhost ~]# exit
--------------重启登录
Last login: Fri Mar 13 05:48:16 2015 from 192.168.245.1
[root@localhost ~]$ ll
总用量 0 感激涕零,谢谢楼主的好贴
页:
[1]