CentOS在登录时候显示cannot change locale (zh_CN.UTF-8): No such file or directory的解决办法

在登录的时候出现下面问题:
-bash: warning: setlocale: LC_CTYPE: cannot change locale (zh_CN.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (zh_CN.UTF-8): No such file or directory
-bash: warning: setlocale: LC_MESSAGES: cannot change locale (zh_CN.UTF-8): No such file or directory
-bash: warning: setlocale: LC_NUMERIC: cannot change locale (zh_CN.UTF-8): No such file or directory
-bash: warning: setlocale: LC_TIME: cannot change locale (zh_CN.UTF-8): No such file or directory
解决办法:
vi /etc/profile
进入后进行编辑

    

加入:
export LC_ALL=C
保存退出:

ctrl+c  , shift z z

问题解决


阅读更多

没有更多推荐了,返回首页