/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
posted @ 2019-07-05 14:01  博客萨斯州  阅读(8635)  评论(0编辑  收藏  举报