本文共 1673 字,大约阅读时间需要 5 分钟。
1.在主机所在ip网页配置里面进行设置
1.文字无法显示,因为没有字库
2.从Windows上拷贝字体放到linux上
[root@weixing01 ~]# vi /usr/share/zabbix/include/defines.inc.php [root@weixing01 ~]# ls /usr/share/zabbix/fontsgraphfont.ttf[root@weixing01 ~]# ls -l !$ls -l /usr/share/zabbix/fonts总用量 0lrwxrwxrwx 1 root root 33 4月 13 01:50 graphfont.ttf -> /etc/alternatives/zabbix-web-font[root@weixing01 ~]# ls -l /etc/alternatives/zabbix-web-fontlrwxrwxrwx 1 root root 38 4月 13 01:50 /etc/alternatives/zabbix-web-font -> /usr/share/fonts/dejavu/DejaVuSans.ttf[root@weixing01 ~]# vi /usr/share/zabbix/include/defines.inc.php [root@weixing01 ~]# ls /root/SIMLI.TTF /root/SIMLI.TTF[root@weixing01 ~]# ls -l !$ls -l /root/SIMLI.TTF-rw-r--r-- 1 root root 9223160 4月 13 22:48 /root/SIMLI.TTF[root@weixing01 ~]# mv /root/SIMLI.TTF /usr/share/zabbix/fonts/[root@weixing01 ~]# cd !$cd /usr/share/zabbix/fonts/[root@weixing01 fonts]# lsgraphfont.ttf SIMLI.TTF[root@weixing01 fonts]# mv graphfont.ttf graphfont.ttf.bak ; ln SIMLI.TTF graphfont.ttf [root@weixing01 fonts]# ls -l总用量 18016-rw-r--r-- 2 root root 9223160 4月 13 22:48 graphfont.ttflrwxrwxrwx 1 root root 33 4月 13 01:50 graphfont.ttf.bak -> /etc/alternatives/zabbix-web-font-rw-r--r-- 2 root root 9223160 4月 13 22:48 SIMLI.TTF[root@weixing01 fonts]# rm -f graphfont.ttf[root@weixing01 fonts]# ln -s SIMLI.TTF graphfont.ttf[root@weixing01 fonts]# ls -l总用量 9008lrwxrwxrwx 1 root root 9 4月 13 22:51 graphfont.ttf -> SIMLI.TTFlrwxrwxrwx 1 root root 33 4月 13 01:50 graphfont.ttf.bak -> /etc/alternatives/zabbix-web-font-rw-r--r-- 1 root root 9223160 4月 13 22:48 SIMLI.TTF
转载于:https://blog.51cto.com/13517254/2103346