标题:
CentOS 7.0中文乱码(方框)的解决方法
[打印本页]
作者:
shillan
时间:
2016-11-20 12:41
标题:
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
作者:
淡然一切琐碎
时间:
2017-3-28 03:45
感激涕零,谢谢楼主的好贴
欢迎光临 逐梦论坛 (http://temp2023.zhumeng.org/)
Powered by Discuz! 7.2