使用Docker pull centos,完了之后镜像无法显示中文问题
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 localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 #配置显示中文ENV LC_ALL zh_CN.utf8 #设置环境变量RUN yum -y install python-setuptools && easy_install pip && pip install supervisor #安装supervisor多进程管理工具,用于启动多进程
可将以上文件作为dockerfile的初始部分
如果是实体机的话执行以下命令即可
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
以上就可以解决Zabbix
You are not able to choose some of the languages, because locales for them are not installed on the web server.