CentOS :Cannot change locale UTF-8 问题

问题:

  LC_CTYPE: cannot change locale (UTF-8): No such file or directory

 

解决:

  

echo LANG=zh_CN.UTF-8 > /etc/profile.d/locale.sh
echo LANG=zh_CN.UTF-8 > /etc/locale.conf
echo LANG=zh_CN.UTF-8 > /etc/sysconfig/i18n
echo LANG=zh_CN.UTF-8 > /etc/environment

  

如果不生效,貌似要重启。

posted @ 2019-09-03 16:18  M5W10  阅读(640)  评论(0编辑  收藏  举报