终端SSH远程连接CentOS报错:-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

终端SSH远程连接CentOS时,报以下错误提示:

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

 

在centos服务器上

sudo vim /etc/locale.conf

内容如下:

LC_ALL=en_US.utf8

LC_CTYPE=en_US.utf8

LANG=en_US.utf8

 

重新连接就正常了。

posted @ 2019-05-30 13:06  风别鹤  阅读(727)  评论(0编辑  收藏  举报