修复远程登陆Centos时,出现UTF-8 Warning

远程登陆Centos时,出现”UTF-8” Warning

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

修复

修改 /ect/environment 文件,添加以下行:

1
2
 LANG=en_US.utf-8
LC_ALL=en_US.utf-8

下次SSH不再出现该错误。