centos7中文显示方块
时间: 2023-12-10 21:35:55 浏览: 355
在CentOS 7中,如果出现中文显示为方块的情况,可以按照以下步骤进行解决:
1.安装语言包
```shell
yum groupinstall "fonts" -y
```
2.设置当前语言为中文
```shell
echo 'export LC_ALL="zh_CN.UTF-8"' >> /etc/profile
source /etc/profile
echo 'LANG="zh_CN.UTF-8"' > /etc/locale.conf
source /etc/locale.conf
```
3.重新启动终端或者重启系统
阅读全文
相关推荐










