SSH远程登录centos7时:warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

Reference

问题描述:

$ ssh root@192.168.199.9
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
manpath: can't set the locale; make sure $LC_* and $LANG are correct

.......

解决方法:

$ vi /etc/environment

LANG=en_US.utf-8
LC_ALL=en_US.utf-8
posted @ 2018-11-07 15:44  yudis  阅读(3164)  评论(0编辑  收藏  举报