美文网首页
CentOS下的Chrome显示中文

CentOS下的Chrome显示中文

作者: 修行的修行 | 来源:发表于2022-12-08 14:31 被阅读0次

确认系统是否支持中文字符集

locale -a |grep CN
image

必须包含zh_CN.utf8

Centos7修改系统默认字符集

vim /etc/locale.conf

修改为以下内容:

# LANG="en_US.UTF-8"
LANG="zh_CN.UTF-8"

安装中文字符集支持

yum -y groupinstall "X Window System"
yum -y groupinstall chinese-support # Centos7如果报错找不到chinese-support可忽略
yum -y groupinstall Fonts 

安装完成之后,是否需要重启有待测试

相关文章

网友评论

      本文标题:CentOS下的Chrome显示中文

      本文链接:https://www.haomeiwen.com/subject/laxofdtx.html