Linuxのzabbix4.0中文乱码处理

 

在本地电脑路径下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]# 

 

替换完成后,重新刷新网页即可

 

 

转载于:https://www.cnblogs.com/maple-study/p/10471040.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值