美文网首页Linux
CentOS8安装中文语言包

CentOS8安装中文语言包

作者: fanderboy | 来源:发表于2021-02-05 14:08 被阅读0次

1、查看当前字符集是否存在zh_CN.utf8

locale -a |grep CN

2、安装中文包

yum install -y langpacks-zh_CN

3、修改默认语言

vim /etc/locale.conf
LANG="zh_CN.UTF-8"

4、让配置生效

source /etc/locale.conf

相关文章

网友评论

    本文标题:CentOS8安装中文语言包

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