Zabbix web界面不能選擇中文,提示:
You are not able to choose some of the languages, because locales for them are not installed on the web server.
解決:
安裝zh_CN語言包
dnf install langpacks-zh_CN.noarch
安裝glibc-common
實現對語言包的識別
dnf install glibc-common
如果已安裝過,需要重新安裝
dnf reinstall glibc-common
測試安裝是否成功,如果看到zh_CN
語言已安裝,則表示成功
locale -a | grep zh_CN
安裝完成后,回到web頁面刷新,可以看到中文語言已可以選中
但是切換到中文后,圖表界面出現亂碼:
需要手動上傳本地Windows的字體(如微軟雅黑)到Zabbix服務器的/usr/share/zabbix/assets/fonts/
cd /usr/share/zabbix/assets/fonts
mv graphfont.ttf graphfont.ttf.backup
ln -s msyh.ttf graphfont.ttf
刷新一下圖表,已顯示中文