zabbix出现中文乱码
zabbix出现中文乱码
在安装好zabbix后
将zabbix调成中文
发现监控界面上出现乱码情况
1.在Windows上控制面板查找字体
我选的宋体 在Windows中找到这个文件
2.将文件后缀改为ttf 放到Linux服务器上
[root@localhost ~]# cd /usr/share/zabbix/assets/fonts/
[root@localhost fonts]# ls
graphfont.ttf simsun.ttf
3.修改配置文件
[root@localhost fonts]# vim /usr/share/zabbix/include/defines.inc.php
修改两个位置
[root@localhost fonts]# cat /usr/share/zabbix/include/defines.inc.php |grep simsun
define(‘ZBX_GRAPH_FONT_NAME’, ‘simsun’); // font file name
define(‘ZBX_FONT_NAME’, ‘simsun’);
还没有评论,来说两句吧...