zabbix docker安装中文没法显示的问题

问题详情

问题描述: You are not able to choose some of the languages, because locales for them are not installed on the web server.mysql

中文语言没法选择,这是由于docker容器环境中缺乏中文语言包,安装中文语言包便可web

CentOS:sql

yum -y install kde-l10n-Chinese
yum -y reinstall glibc-common
localedef -c -f UTF-8 -i zh_CN zh_CN.utf8

修改Dockerfiledocker

FROM zabbix/zabbix-server-mysql 
RUN yum -y install kde-l10n-Chinese && yum -y reinstall glibc-common && localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
ENV LC_ALL zh_CN.utf8

Ubuntu:spa

apt-get install language-pack-zh-hant language-pack-zh-hans
相关文章
相关标签/搜索