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

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

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

修复

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

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

下次SSH不再出现该错误。


centos

73 字

2018-01-12 13:12 +0000

comments powered by Disqus