Centos7登录报错-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

dhso
2019/01/09 15:50
统计中

报错信息-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory警告:setlocale: LC_CTYPE: 无法改变区域选项 (UTF-8)

解决方案

编辑 /etc/environment 文件,没有就新建,将下面两行放进去就行了

LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8

本文为 dhso 原创

发布在 http://blog.minws.com/centos7deng-lu-bao-cuo-bash-warning-setlocale-lc_ctype-cannot-change-locale-utf-8-no-such-file-or-directory/

如有转载,请标明来源!

作者信息
姓名:dhso
热评文章
最新评论
文章概览