centos7 警告:setlocale: LC_CTYPE: 无法改变区域选项 (UTF-8)

vi   /etc/environment
#添加下面几行
LANG=en_US.utf-8
LC_ALL=en_US.utf-8

安装库

yum install glibc-common
yum -y install kde-l10n-Chinese telnet

设置语言:

localectl set-locale LANG=zh_CN.utf8

修改

vim /etc/locale.conf  
LANG=zh_CN.utf8

重启

reboot

猜你喜欢

转载自blog.csdn.net/asd54090/article/details/132490401