Zabbix探索(三):解决Zabbix中文字体乱码

it2022-05-05  122

版权声明:欢迎转载与交流。https://blog.csdn.net/one2more/article/details/96434433

一、上传字体包

[root@VM_0_16_centos ~]# yum -y install lrzsz [root@VM_0_16_centos ~]# rz [root@VM_0_16_centos ~]# ll -rw-r--r-- 1 root root 21543568 Jun 20 10:05 msyh.ttc

二、拷贝字体包到zabbix字体目录

[root@VM_0_16_centos ~]# mv msyh.ttf /usr/share/zabbix/assets/fonts [root@VM_0_16_centos ~]# ll /usr/share/zabbix/assets/fonts

三、修改默认的字体指向

[root@VM_0_16_centos ~]# vim /usr/share/zabbix/include/defines.inc.php #搜索font,把所有的graphfont改为msyh(:%s/graphfont/msyh/g )

四、刷新页面后,显示正常

      欢迎留言评论和交流


最新回复(0)