CentOS -bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS -bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8)相关的知识,希望对你有一定的参考价值。

centos5.x 登陆显示:

-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): No such file or directory


亲测

vi /etc/environment

写入

LANG=en_US.UTF-8

即可


以上是关于CentOS -bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8)的主要内容,如果未能解决你的问题,请参考以下文章

在linux centos中用fdisk分区后,再用partprobe命令后有警告 Warning

U盘安装centos 7 提示 “Warning: /dev/root does not exist

centos7按报错dracut

U盘安装CentOS 7提示 “Warning: /dev/root does not exist, could not boot” 解决办法

CentOS安装jdk SE 1.8 JDK与OpenJDK的区别

转 解决Centos6.5中ssh登录时Warning:Permanently added (RSA) to the list of known hosts的警告