如果不行的话更改阿里的epel源:wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-6.repo 在zabbix服务器端安装开源的字符集 [root@lb01 ~]# yum -y install wqy-microhei-fonts [root@lb01 ~]# rpm -ql wqy-microhei-fonts /etc/fonts/conf.d/65-0-wqy-microhei.conf /usr/share/doc/wqy-microhei-fonts-0.2.0 /usr/share/doc/wqy-microhei-fonts-0.2.0/LICENSE_Apache2.txt /usr/share/doc/wqy-microhei-fonts-0.2.0/LICENSE_GPLv3.txt /usr/share/doc/wqy-microhei-fonts-0.2.0/README.txt /usr/share/fontconfig/conf.avail/65-0-wqy-microhei.conf /usr/share/fonts/wqy-microhei /usr/share/fonts/wqy-microhei/wqy-microhei.ttc [root@lb01 ~]# [root@lb01 ~]# ll /etc/alternatives/zabbix-web-font ##zabbix默认的字符集 lrwxrwxrwx 1 root root 38 May 30 17:13 /etc/alternatives/zabbix-web-font -> /usr/share/fonts/dejavu/DejaVuSans.ttf [root@lb01 ~]# #删除默认软连接指向的字符集,指向安装的字符集 [root@lb01 ~]# rm -f /etc/alternatives/zabbix-web-font [root@lb01 ~]# ln -s /usr/share/fonts/wqy-microhei/wqy-microhei.ttc /etc/alternatives/zabbix-web-font [root@lb01 ~]# ll /etc/alternatives/zabbix-web-font lrwxrwxrwx 1 root root 46 May 30 22:12 /etc/alternatives/zabbix-web-font -> /usr/share/fonts/wqy-microhei/wqy-microhei.ttc [root@lb01 ~]# 不要忘记重启zabbix-server 第二种方法 C:\Windows\Fonts windows字符集考出来一个 /usr/share/zabbix/fonts zabbix的字符集 [root@zabbix-server fonts]# ls graphfont.ttf [root@zabbix-server fonts]# [root@zabbix-server fonts]# ls graphfont.ttf STZHONGS.TTF [root@zabbix-server fonts]# \mv STZHONGS.TTF graphfont.ttf [root@zabbix-server fonts]# systemctl restart zabbix-server [root@zabbix-server fonts]#
转载于:https://blog.51cto.com/wsxxsl/1903213