CentOS 7 终端中文乱码解决办法:
1、使用vim编辑locale.config文件:
vim /etc/locale.conf
2、将LANG=”C”修改为:
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN.UTF-8:zh_CN.UTF-8:zh_CN"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"
3、终端运行exit退出再重新登录即可。
CentOS 7 终端中文乱码解决办法:
1、使用vim编辑locale.config文件:
vim /etc/locale.conf
2、将LANG=”C”修改为:
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN.UTF-8:zh_CN.UTF-8:zh_CN"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"
3、终端运行exit退出再重新登录即可。