首页 > 其他 > 详细

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

时间:2018-01-26 22:37:46      阅读:249      评论:0      收藏: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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!