1、查看當(dāng)前字符集是否存在zh_CN.utf8
locale -a |grep CN
2、安裝中文包
yum install -y langpacks-zh_CN
3、修改默認(rèn)語言
vim /etc/locale.conf
LANG="zh_CN.UTF-8"
4、讓配置生效
source /etc/locale.conf
1、查看當(dāng)前字符集是否存在zh_CN.utf8
locale -a |grep CN
2、安裝中文包
yum install -y langpacks-zh_CN
3、修改默認(rèn)語言
vim /etc/locale.conf
LANG="zh_CN.UTF-8"
4、讓配置生效
source /etc/locale.conf