[root@5c46832b5c01 ~]# locale -a
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_US.utf8
localedef -v -c -i zh_CN -f UTF-8 zh_CN.UTF-8
就安装上了zh_CN.UTF-8
之后执行
yum install kde-l10n-Chinese -y
yum groupinstall "fonts" -y
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
yum -y reinstall glibc-common
echo LANG=zh_CN.UTF8 > /etc/locale.conf
LANG=zh_CN.UTF8
[回头看这个差多]https://blog.csdn.net/terry100000/article/details/80706770
[ok]https://blog.csdn.net/houshangling/article/details/77119421
[不全面]https://www.cnblogs.com/li5206610/p/7828618.html
网友评论