centos7 为什么主页显示乱码

2025-05-22 12:37:39
推荐回答(2个)
回答1:

如果在第一步中字符集显示出来是其他的,那么需要先安装中文包,命令:yum -y groupinstall chinese-support
安装后之后,修改字符编码配置,命令:vim /etc/locale.conf 将LANG=”XXXX” 改为LANG=”zh_CN.UTF-8”,注意Centos7的字符集配置文件为 /etc/locale.conf,如果是7之前的版本,应修改 /etc/sysconfig/i18n,修改完之后记得 reboot.

回答2:

yum -y groupinstall "fonts"
' yum -y groupinstall chinese-support ' is not availuable in CentOS 7.
This works because I can read your question as I am using CentOS 7. But unfortunately chinese input 's not been installed yet.