[root@VM_18_167_centos ~]# locale
[root@VM_18_167_centos ~]# locale -a
如果没有zh_CN.utf8,则需要单独安装中文语言包
[root@VM_18_167_centos ~]# yum install kde-l10n-Chinese
// 设置为中文 [root@VM_18_167_centos ~]# LANG="zh_CN.UTF-8" // 设置为英文 [root@VM_18_167_centos ~]# LANG="en_US.UTF-8"
[root@VM_18_167_centos ~]# localectl set-locale.UTF8
[root@VM_18_167_centos ~]# vi /etc/locale.conf
添加以下内容到第一行,设置为中文
LANG=zh_CN.UTF8