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

Mac从中文切换英文之后,打开iterm2登录centos系统出现如下报错:

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

解决

在 /etc/environment 文件中补充如下配置

vi /etc/environment
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
    原文作者:全栈运维
    原文地址: https://www.jianshu.com/p/bbedc53f320d
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞