服务器登录时报错cannot change locale (en_US.UTF-8): No such file or directory

服务器登录时报错cannot change locale (en_US.UTF-8): No such file or directory

报错内容如下:
在这里插入图片描述
解决代码

vim /etc/sysconfig/i18n

添加以下内容

LC_ALL=C
export LC_ALL

然后

source /etc/sysconfig/i18n 

使之生效

重启可以发现不再报错

猜你喜欢

转载自blog.csdn.net/kullollo/article/details/109450072