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

December 31, 20181分钟阅读

centos阿里云服务器登录警告 LC_CTYPE: cannot change locale (UTF-8): No such file or directory

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

如何解决: 在文件

vi /etc/environment

添加这2行

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

l

转载自 https://gist.github.com/mes01/c8634bd4f94f21e4f4259e257509d68f