1、登陆ssh报错
Last login: Tue Apr 23 03:42:01 2019 from 192.168.0.100
-bash: warning: setlocale: LC_ALL: cannot change locale (en_CN.UTF-8): No such file or directory
-bash: warning: setlocale: LC_ALL: cannot change locale (en_CN.UTF-8)
-bash: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8): No such file or directory
-bash: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8)
2、编辑/etc/profile文件
vim /etc/profile
末尾加上:
export LC_ALL=C
生效
source /etc/profile