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'错误提示

linux登录错误-cannot change locale (en_US.UTF-8): No such file or directory_第1张图片

解决:

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

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

linux登录错误-cannot change locale (en_US.UTF-8): No such file or directory_第2张图片

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'错误提示

你可能感兴趣的:(linux登录错误-cannot change locale (en_US.UTF-8): No such file or directory)