在 Centos 7 ssh登录出现locale异常

原创
2017/02/27 17:54
阅读数 502

问题:-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_CTYPE: cannot change locale (zh_CN.UTF-8): No such file or directory
-bash: warning: setlocale: LC_CTYPE: cannot change locale (zh_CN.UTF-8)

解决:

 localedef -i en_US -f UTF-8 en_US.UTF-8

localedef -i zh_CN -f UTF-8 zh_CN.UTF-8

yum -y groupinstall chinese-support

yum install kde-l10n-Chinese
yum update glibc-common (如果没有的话需要instal)
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部