CentOS7 设置中文环境
- 查看当前字符集
locale
- 查看有没有zh_CN.utf8
locale -a |grep CN
- 安装 langpacks-zh_CN
yum install -y langpacks-zh_CN
- 配置
> /etc/locale.conf; echo 'LANG="zh_CN.UTF-8"' >>/etc/locale.conf
- 重启系统
shutdown -r now
标签:中文,zh,CN,conf,locale,CentOS7,设置 From: https://www.cnblogs.com/liuzonglin/p/17724063.html