確認(rèn)系統(tǒng)是否支持中文字符集
locale -a |grep CN
必須包含zh_CN.utf8
Centos7修改系統(tǒng)默認(rèn)字符集
vim /etc/locale.conf
修改為以下內(nèi)容:
# LANG="en_US.UTF-8"
LANG="zh_CN.UTF-8"
安裝中文字符集支持
yum -y groupinstall "X Window System"
yum -y groupinstall chinese-support # Centos7如果報(bào)錯(cuò)找不到chinese-support可忽略
yum -y groupinstall Fonts
安裝完成之后枉氮,是否需要重啟有待測(cè)試