/bin/sh: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8) centos7

今天登陆centos 7 遇到一个 警告

/bin/sh: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8)

bash : warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8)

只要执行 :

yum -y install kde-l10n-Chinese telnet && 

yum -y reinstall glibc-common

#基本就能搞定 ,还有修改一下 

/etc/locale.conf  

LC_ALL="zh_CN.UTF-8"

在docker 容器里,还需要执行下

localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
原文地址:https://www.cnblogs.com/fan-gx/p/11137943.html