登陆报错:-bash: warning: setlocale: LC_CTYPE: cannot c
时间:
2018-01-26 22:37:46
阅读:
249
评论:
收藏:
0
[点我收藏+]
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后才出现这个情况:
[root@mysql ~]# cat /etc/sysconfig/i18n
LANG="latin1"
SYSFONT="latarcyrheb-sun16"
还原成原来的en_US.UTF-8,后su -和重启就不会出现这个情况。登陆报错:-bash: warning: setlocale: LC_CTYPE: cannot c
原文:http://blog.51cto.com/11575772/2065610