美文网首页learning
docker centos7 中文镜像

docker centos7 中文镜像

作者: QTong | 来源:发表于2019-02-27 21:40 被阅读0次
    [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

    相关文章

      网友评论

        本文标题:docker centos7 中文镜像

        本文链接:https://www.haomeiwen.com/subject/jnuquqtx.html