终端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
重新连接就正常了。