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

问题解决


阅读更多
文章标签: linux
个人分类: 框架学习
想对作者说点什么? 我来说一句

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

关闭
关闭
关闭