Centos7登录报错-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

Centos7登录报错-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

2019-01-09 / 0 评论 / 419 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2021年10月27日,已超过1121天没有更新,若内容或图片失效,请留言反馈。

报错信息-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory警告:setlocale: LC_CTYPE: 无法改变区域选项 (UTF-8)

解决方案

编辑 /etc/environment 文件,没有就新建,将下面两行放进去就行了
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8

0

评论 (0)

取消