Centos中文乱码
查看当前语言
echo $LANG
查看是否安装中文语音
locale -a | grep “zh_CN” |
如果没有
安装中文语言
yum groupinstall “fonts” -y
修改语言配置文件
vim /etc/locale.conf
添加
1
LANG="zh_CN.utf8"
source /etc/locale.conf
测试
date
2021年 12月 15日 星期三 14:49:00 CST
echo $LANG
locale -a | grep “zh_CN” |
如果没有
yum groupinstall “fonts” -y
vim /etc/locale.conf
添加
1
LANG="zh_CN.utf8"
source /etc/locale.conf
date
2021年 12月 15日 星期三 14:49:00 CST