服務器環境
系統:官方 Ubuntu16.04 的docker鏡像
zabbix的web服務:Nginx + php-fpm + zabbix-3.4
現象
在zabbix的web語言設置裏面,中文的選項是灰色的,在zabbix的語言配置php文件裏面已經開啓中文,並且也有了中文語言包,但還是不能選擇中文語言
報錯如下
You are not able to choose some of the languages, because locales for them are not installed on the web server.
報錯原因及解決
ubuntu16的官方docker鏡像,默認沒有支持中文的字符集,需要手動安裝
locale-gen zh_CN.UTF-8
推薦博客網站:https://blog.dologe.com