Processing of CentOS Chinese garbled problem under Docker

Source: Internet
Author: User

Use Docker pull CentOS, the mirror will not display the Chinese issue after the finished

From Centosmaintainer fengwan.blog.51cto.comrun rm-rf/etc/localtime && ln-s/usr/share/zoneinfo/asia/ Shanghai/etc/localtime #修改时区RUN yum-y Install Kde-l10n-chinese && yum-y Reinstall Glibc-common #安装中文支持RUN Local Edef-c-F UTF-8-i zh_cn zh_cn.utf8 #配置显示中文ENV lc_all zh_cn.utf8 #设置环境变量RUN yum-y install Python-setuptools && E Asy_install pip && pip install Supervisor #安装supervisor多进程管理工具 for initiating multi-process

The above file can be used as the initial part of the Dockerfile


If it is a physical machine, execute the following command

Yum-y Install Kde-l10n-chinese && yum-y Reinstall Glibc-commonlocaledef-c-F UTF-8-I zh_cn zh_cn.utf8export LC _all=zh_cn.utf8

The above can be solved Zabbix

Able to choose some of the languages, because locales for them is not installed on the Web server.



This article is from "Maple Night" blog, please be sure to keep this source http://fengwan.blog.51cto.com/508652/1891063

Processing of CentOS Chinese garbled problem under Docker

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.