Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 679 Bytes

5.13-监控客户机.md

File metadata and controls

22 lines (15 loc) · 679 Bytes

解决中文名称不能写数据库的问题

1) 设置utf8字符集
my.cnf
character_set_database = utf8
character_set_server = utf8

2) mysqldump -uroot -paminglinux --default-character-set=utf8 zabbix > zabbix.sql
vim zabbix.sql  
:1,$s/latin1/utf8/g

3) mysql -uroot -paminglinux --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