修复Centos图形界面中文乱码,亲测在Centos7.5环境下有效
csdn博客:https://blog.csdn.net/baidu_38635190/article/details/88922732
git clone https://github.com/JamesHoi/pane-fixer-centos.git
cd pane-fixer-centos
chmod +x install.sh
./install.sh
将以上命令输入到centos终端即可
(总共25M左右,等待时间可能较长)
locale
yum install kde-l10n-Chinese
vim /etc/sysconfig/i18n
将文件内容修改为 LANG="zh_CN.UTF-8"
source /etc/sysconfig/i18n
vim /etc/locale.conf
将文件内容修改为 LANG="zh_CN.UTF-8"
然后重启一下reboot
vim /etc/sysconfig/i18n
将文件内容修改为 LANG="en_US.UTF-8"
source /etc/sysconfig/i18n
vim /etc/locale.conf
将文件内容修改为
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
然后重启一下reboot