解決中文名稱不能寫數據庫的問題php
[root@feature1 ~]# vim /etc/my.cnf character_set_database = utf8 character_set_server = utf8
mysqldump -uroot -proot --default-character-set=utf8 zabbix > zabbix.sql
vim zabbix.sql :1,$s/latin1/utf8/g
mysql -uroot -proot --default-character-set=utf8 zabbix < zabbix.sql
vim /usr/share/zabbix/include/defines.inc.php #搜索fonts 字體路徑:define('ZBX_FONTPATH', realpath('fonts')); 字體名稱:define('ZBX_GRAPH_FONT_NAME', 'graphfont');
拷貝windows:C:\Windows\Fonts\simsun.ttc 更名字爲/usr/share/zabbix/fonts/graphfont.ttf