在本地电脑路径下C:\Windows\Fonts,找到楷体(simkai.ttf)文件后,上传到zabbix服务器(/usr/share/zabbix/fonts),并对文件授予执行权限
[root@bigdata ~]# cd /usr/share/zabbix/fonts/ [root@bigdata fonts]# ll total 11512 lrwxrwxrwx 1 root root 33 Mar 1 03:59 graphfont.ttf -> /etc/alternatives/zabbix-web-font -rw-r--r-- 1 root root 11787328 Mar 4 02:33 simkai.ttf [root@bigdata fonts]# chmod a+x simkai.ttf [root@bigdata fonts]# ll total 11512 lrwxrwxrwx 1 root root 33 Mar 1 03:59 graphfont.ttf -> /etc/alternatives/zabbix-web-font -rwxr-xr-x 1 root root 11787328 Mar 4 02:33 simkai.ttf
切换到zabbix的web端显示界面的软链接路径下
[root@bigdata fonts]# cd /etc/alternatives/ [root@bigdata alternatives]# ll total 0 lrwxrwxrwx 1 root root 35 Oct 22 2016 java -> /usr/lib/jvm/jre-1.5.0-gcj/bin/java lrwxrwxrwx 1 root root 32 Oct 22 2016 jaxp_parser_impl -> /usr/share/java/libgcj-4.4.7.jar lrwxrwxrwx 1 root root 26 Oct 22 2016 jre -> /usr/lib/jvm/jre-1.5.0-gcj lrwxrwxrwx 1 root root 26 Oct 22 2016 jre_1.5.0 -> /usr/lib/jvm/jre-1.5.0-gcj lrwxrwxrwx 1 root root 34 Oct 22 2016 jre_1.5.0_exports -> /usr/lib/jvm-exports/jre-1.5.0-gcj lrwxrwxrwx 1 root root 34 Oct 22 2016 jre_exports -> /usr/lib/jvm-exports/jre-1.5.0-gcj lrwxrwxrwx 1 root root 26 Oct 22 2016 jre_gcj -> /usr/lib/jvm/jre-1.5.0-gcj lrwxrwxrwx 1 root root 34 Oct 22 2016 jre_gcj_exports -> /usr/lib/jvm-exports/jre-1.5.0-gcj lrwxrwxrwx 1 root root 38 Oct 22 2016 keytool -> /usr/lib/jvm/jre-1.5.0-gcj/bin/keytool lrwxrwxrwx 1 root root 10 Oct 22 2016 ksh -> /bin/ksh93 lrwxrwxrwx 1 root root 30 Oct 22 2016 ksh-man -> /usr/share/man/man1/ksh93.1.gz lrwxrwxrwx 1 root root 42 Oct 22 2016 rmiregistry -> /usr/lib/jvm/jre-1.5.0-gcj/bin/rmiregistry lrwxrwxrwx 1 root root 29 Mar 1 04:00 zabbix-server -> /usr/sbin/zabbix_server_mysql lrwxrwxrwx 1 root root 38 Mar 1 03:59 zabbix-web-font -> /usr/share/fonts/dejavu/DejaVuSans.ttf # zabbix-web端默认文字显示格式软链接
清除该软连接,并新建软连接制定到我们刚刚从所上传的楷体(simkai.ttf)文件
[root@bigdata alternatives]# rm -rf zabbix-web-font [root@bigdata alternatives]# ll total 0 lrwxrwxrwx 1 root root 35 Oct 22 2016 java -> /usr/lib/jvm/jre-1.5.0-gcj/bin/java lrwxrwxrwx 1 root root 32 Oct 22 2016 jaxp_parser_impl -> /usr/share/java/libgcj-4.4.7.jar lrwxrwxrwx 1 root root 26 Oct 22 2016 jre -> /usr/lib/jvm/jre-1.5.0-gcj lrwxrwxrwx 1 root root 26 Oct 22 2016 jre_1.5.0 -> /usr/lib/jvm/jre-1.5.0-gcj lrwxrwxrwx 1 root root 34 Oct 22 2016 jre_1.5.0_exports -> /usr/lib/jvm-exports/jre-1.5.0-gcj lrwxrwxrwx 1 root root 34 Oct 22 2016 jre_exports -> /usr/lib/jvm-exports/jre-1.5.0-gcj lrwxrwxrwx 1 root root 26 Oct 22 2016 jre_gcj -> /usr/lib/jvm/jre-1.5.0-gcj lrwxrwxrwx 1 root root 34 Oct 22 2016 jre_gcj_exports -> /usr/lib/jvm-exports/jre-1.5.0-gcj lrwxrwxrwx 1 root root 38 Oct 22 2016 keytool -> /usr/lib/jvm/jre-1.5.0-gcj/bin/keytool lrwxrwxrwx 1 root root 10 Oct 22 2016 ksh -> /bin/ksh93 lrwxrwxrwx 1 root root 30 Oct 22 2016 ksh-man -> /usr/share/man/man1/ksh93.1.gz lrwxrwxrwx 1 root root 42 Oct 22 2016 rmiregistry -> /usr/lib/jvm/jre-1.5.0-gcj/bin/rmiregistry lrwxrwxrwx 1 root root 29 Mar 1 04:00 zabbix-server -> /usr/sbin/zabbix_server_mysql [root@bigdata alternatives]# ln -s /usr/share/zabbix/fonts/simkai.ttf /etc/alternatives/zabbix-web-font [root@bigdata alternatives]# ll total 0 lrwxrwxrwx 1 root root 35 Oct 22 2016 java -> /usr/lib/jvm/jre-1.5.0-gcj/bin/java lrwxrwxrwx 1 root root 32 Oct 22 2016 jaxp_parser_impl -> /usr/share/java/libgcj-4.4.7.jar lrwxrwxrwx 1 root root 26 Oct 22 2016 jre -> /usr/lib/jvm/jre-1.5.0-gcj lrwxrwxrwx 1 root root 26 Oct 22 2016 jre_1.5.0 -> /usr/lib/jvm/jre-1.5.0-gcj lrwxrwxrwx 1 root root 34 Oct 22 2016 jre_1.5.0_exports -> /usr/lib/jvm-exports/jre-1.5.0-gcj lrwxrwxrwx 1 root root 34 Oct 22 2016 jre_exports -> /usr/lib/jvm-exports/jre-1.5.0-gcj lrwxrwxrwx 1 root root 26 Oct 22 2016 jre_gcj -> /usr/lib/jvm/jre-1.5.0-gcj lrwxrwxrwx 1 root root 34 Oct 22 2016 jre_gcj_exports -> /usr/lib/jvm-exports/jre-1.5.0-gcj lrwxrwxrwx 1 root root 38 Oct 22 2016 keytool -> /usr/lib/jvm/jre-1.5.0-gcj/bin/keytool lrwxrwxrwx 1 root root 10 Oct 22 2016 ksh -> /bin/ksh93 lrwxrwxrwx 1 root root 30 Oct 22 2016 ksh-man -> /usr/share/man/man1/ksh93.1.gz lrwxrwxrwx 1 root root 42 Oct 22 2016 rmiregistry -> /usr/lib/jvm/jre-1.5.0-gcj/bin/rmiregistry lrwxrwxrwx 1 root root 29 Mar 1 04:00 zabbix-server -> /usr/sbin/zabbix_server_mysql lrwxrwxrwx 1 root root 34 Mar 4 02:36 zabbix-web-font -> /usr/share/zabbix/fonts/simkai.ttf [root@bigdata alternatives]#
替换完成后,重新刷新网页即可