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
相關文章
相關標籤/搜索