Loading

Centos7中文乱码

Centos中文乱码

查看当前语言

echo $LANG

查看是否安装中文语音

locale -a | grep "zh_CN"

如果没有

安装中文语言

yum groupinstall "fonts" -y

修改语言配置文件

vim /etc/locale.conf

添加

LANG="zh_CN.utf8"

source /etc/locale.conf

测试

date

2021年 12月 15日 星期三 14:49:00 CST

posted @ 2022-02-28 11:19  秦一居  阅读(61)  评论(0)    收藏  举报