CentOS安装中文支持包

Posted 三瑞

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS安装中文支持包相关的知识,希望对你有一定的参考价值。

修改配置文件

LANG="zh_CN.UTF-8"

改为中文字符集

然后在查看更改后的系统语言变量

[[email protected] ~]# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=

查看语言包

[[email protected] ~]# locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_US.utf8

发现没有中文,安装一个,注意7跟6不一样

# yum install kde-l10n-Chinese
#yum reinstall glibc-common

再次查看

[root@ce1d2002a999 ~]# cat test  
我的意思是
[root@ce1d2002a999 ~]# vi test 

我的意思是

更改完毕!!

以上是关于CentOS安装中文支持包的主要内容,如果未能解决你的问题,请参考以下文章

图文详解在VMware Workstation 14 上安装CentOS 7 送安装包

centos7 支持中文显示

CentOS7.2 1511部署RabbitMQ

CentOS8 中文支持

CentOS 安装 clang

centos安装时没有软件列表