kaneyang

解决zabbix3.4X页面中文乱码

解决zabbix3.4X页面中文乱码

1.在windows的C:\Windows\Fonts找到字体文件simkai.ttf
2.在zabbix服务器上找到zabbix默认字体文件graphfont.ttf的目录,并将simkai.ttf文件上传至该目录

[root@localhost fonts]# find / -name 'graphfont.ttf'
/usr/share/zabbix/fonts/graphfont.ttf

[root@localhost ~]# cd /usr/share/zabbix/fonts/
[root@localhost fonts]# ll
total 11512
lrwxrwxrwx 1 root root 33 Dec 8 16:09 graphfont.ttf -> /etc/alternatives/zabbix-web-font
-rw-r--r-- 1 root root 11785184 Jun 11 2009 simkai.ttf

3.将配置文件/usr/share/zabbix/include/defines.inc.php中的以下两行更换为新的字体simkai

define('ZBX_GRAPH_FONT_NAME',           'simkai'); // font file name

define('ZBX_FONT_NAME', 'simkai');

posted on 2018-01-29 15:50 Nage 阅读(...) 评论(...) 编辑 收藏

相关文章:

  • 2021-11-28
  • 2021-12-10
  • 2021-12-25
  • 2022-03-08
  • 2021-11-23
  • 2021-11-20
  • 2021-12-04
猜你喜欢
  • 2022-02-19
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2021-11-23
  • 2021-06-13
相关资源
相似解决方案