CentOS 7可以正常登录,但是root每次登录都有几行警告

1、登录账户或切换账户时出现以下警告 ,如图

-bash: warning: setlocale: LC_CTYPE: cannot change locale (en US.UTF-8):no such file or directoty

-bash: warning: setlocale: LC_COLLATE: cannot change locale (en US.UTF-8):no such file or directoty

-bash: warning: setlocale: LC_MESSAGES: cannot change locale (en US.UTF-8):no such file or directoty

-bash: warning: setlocale: LC_NUMERIC: cannot change locale (en US.UTF-8):no such file or directoty

-bash: warning: setlocale: LC_TIME: cannot change locale (en US.UTF-8):no such file or directoty

 

 实际上并非中文英文的问题,也不是其他问题,解决方法:仔细看上面几条警告是不是都指向一个地方(en  US.UTF-8),我搞了很久,找了很多方法,都没用,后来仔细一看,TMD中间少了个底杆(切换命令中间)

这次事故告诉我,做事要仔细

posted @ 2019-12-04 21:30  吾言!  阅读(465)  评论(0编辑  收藏  举报