centos字符集问题

-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory

解决方法:

centos6:etc/sysconfig/i18n

centos7:/etc/locale.conf

1.先查看字符集是否有问题,用locale命令查看

2.修改字符集配置文件,上面是不同版本的配置文件路径

添加进配置文件
LC_ALL=C #清除本地设置
export LC_ALL

 

posted @ 2020-06-14 20:19  菜鸟web  阅读(343)  评论(0编辑  收藏  举报