cat /etc/locale.conf
LANG=en_US.UTF-8
cp /etc/locale.conf /etc/locale.conf.backup
vim /etc/locale.conf
LANG=
"zh_CN.GB18030"
LANGUAGE=
"zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED=
"zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT=
"lat0-sun16"
exit
重新登录即可,
但是这样操作之后,mysql无法登陆,之后又改回来,报错如下:
转载于:https://blog.51cto.com/guowang327/1711324