標籤:docker zabbix
使用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.
本文出自 “楓林晚” 部落格,請務必保留此出處http://fengwan.blog.51cto.com/508652/1891063
Docker下CentOS中文亂碼問題處理