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 -和重启就不会出现这个情况。