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

0

问题详情

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

中文语言无法选择,这是因为docker容器环境中缺少中文语言包,安装中文语言包即可

CentOS:

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

修改Dockerfile

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:

apt-get install language-pack-zh-hant language-pack-zh-hans

你可能感兴趣的

载入中...