这里是普通文章模块栏目内容页
cannot change locale (en_US.UTF-8)

linux登录错误-cannot change locale (en_US.UTF-8): No such file or directory

问:使用Xhsell登录linux服务器,出现'cannot change locale (en_US.UTF-8): No such file or directory'错误提示

解决:

1.执行more /etc/sysconfig/i18n命令检查系统字符集

2.执行locale命令,出现如下异常,说明说明没安装en_US的local

3.vi /etc/sysconfig/i18n

 # 添加如下内容:

 LC_ALL=C

export LC_ALL 

4.source /etc/sysconfig/i18n 使之生效

5.再重新登录无'cannot change locale (en_US.UTF-8): No such file or directory'错误提示