1、查看是否有中文語言"zh_CN.UTF-8"
locale
2、如果有直接下一步,如果沒有 yum 安裝
yum -y groupinstall chinese-support
3、修改系統字符集為中文
# 臨時生效
export LANG="zh_CN.UTF-8"
# 永久生效 把export LANG="zh_CN.UTF-8 追加到/etc/profile系統配置文件中
echo "export LANG="zh_CN.UTF-8" >> /etc/proflile
4、重新加載 /etc/profile
source /etc/profile