echo $LANG #查看当前使用的系统语言
locale -a #查看是否有中文语言包,没有就运行下面的命令安装修改
yum install kde-l10n-Chinese -y;yum reinstall glibc-common -y #或者 yum groupinstall chinese-support
vi /etc/sysconfig/i18n 修改LANG="zh_CN.UTF-8" 然后保存
source /etc/sysconfig/i18n
echo $LANG #查看当前使用的系统语言
locale -a #查看是否有中文语言包,没有就运行下面的命令安装修改
yum install kde-l10n-Chinese -y;yum reinstall glibc-common -y #或者 yum groupinstall chinese-support
vi /etc/sysconfig/i18n 修改LANG="zh_CN.UTF-8" 然后保存
source /etc/sysconfig/i18n
转载于:https://my.oschina.net/colour10/blog/837863