zabbix7.0 图形中文乱码
2024-07-01zabbix7.0 图形中文乱码
1、找到本地C:\Windows\Fonts\simkai.ttf(楷体)上传到服务器zabbix网站目录fonts目录下。
ls -l /usr/share/zabbix/assets/fonts/
graphfont.ttf -> /etc/alternatives/zabbix-web-font
ll /etc/alternatives/zabbix-web-font
lrwxrwxrwx 1 root root 49 Jul 1 13:00 /etc/alternatives/zabbix-web-font -> /usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf
mv DejaVuSans.ttf DejaVuSans.ttf_bak
2、vi /usr/share/zabbix/include/defines.inc.php
define('ZBX_FONTPATH', realpath('assets/fonts'));
define('ZBX_GRAPH_FONT_NAME', 'graphfont')
cp simsun.ttf /usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf
分类:Linux | 标签: |