登陆报错:-bash: warning: setlocale: LC_CTYPE: cannot c

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了登陆报错:-bash: warning: setlocale: LC_CTYPE: cannot c相关的知识,希望对你有一定的参考价值。

Xshell登录linux系统时会出现报错:
-bash: warning: setlocale: LC_CTYPE: cannot change locale (latin1): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (latin1): No such file or directory
-bash: warning: setlocale: LC_MESSAGES: cannot change locale (latin1): No such file or directory
-bash: warning: setlocale: LC_NUMERIC: cannot change locale (latin1): No such file or directory
-bash: warning: setlocale: LC_TIME: cannot change locale (latin1): No such file or directory
由于之前修改过系统和mysql服务端字符集,全部修改成latin1后才出现这个情况:
[[email protected] ~]# cat /etc/sysconfig/i18n
LANG="latin1"
SYSFONT="latarcyrheb-sun16"
还原成原来的en_US.UTF-8,后su -和重启就不会出现这个情况。

以上是关于登陆报错:-bash: warning: setlocale: LC_CTYPE: cannot c的主要内容,如果未能解决你的问题,请参考以下文章

CentOS -bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8)

Mac iTerm2登陆CentOS提示warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or dire

已解决:登录Linux的 -bash-4.2$ 问题

ssh 登陆 Host key verification failed.

ssh登录locale报错:cannot change locale (zh_CN.UTF-8): No such file or directory

-bash: fork: retry: Resource temporarily unavailable