以centos为单位的语言环境错误 [英] Locale Error in centos

查看:59
本文介绍了以centos为单位的语言环境错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我通过SSH登录到CentOS 6服务器时,都会出现此错误

Every time I login to my CentOS 6 server through SSH I get this error

任何人都可以解释该错误是什么意思吗?如何解决?

Can anyone please explain what does that error mean & how to fix?

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

推荐答案

修复: 感谢Millie Smith( https://stackoverflow.com/users/2850543/millie-smith )& http://linuxforums.org.uk/index.php?topic=10318.0

The Fix: Thanks for Millie Smith (https://stackoverflow.com/users/2850543/millie-smith) & http://linuxforums.org.uk/index.php?topic=10318.0

通过ssh使用root用户

Using root user through ssh

运行这些命令

vi /etc/environment

&添加这些行:

& add these lines:

LANG=en_US.utf-8
LC_ALL=en_US.utf-8

这篇关于以centos为单位的语言环境错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆