centos7修改LANG为中文

centos7修改LANG为中文
2018年06月03日 12:59:07 阅读数:677 标签: centos7系统支持中文显示 更多
个人分类: Linux运维
Xshell连接centos7,vim编辑器中使用了中文,在系统上显示中文乱码,修改系统语言支持中文

修改/etc/locale.conf文件

vim /etc/locale.conf
1
默认为: LANG=”en_US.UTF-8”

LANG=”zh_CN.UTF-8”
立即生效:

source /etc/locale.conf
2 设置为英文LANG=C

猜你喜欢

转载自blog.csdn.net/weixin_41909810/article/details/82622571