本文作者:chenzj

解决ZABBIX中文乱码无法显示的问题

chenzj 2019-08-21 184 抢沙发
解决ZABBIX中文乱码无法显示的问题摘要: 解决中文乱码无法显示的问题Windows字体目录地址C:\Windows\Fonts复制到zabbix服务器中查找Zabbix所使用的语言包# find / -name *font...

解决中文乱码无法显示的问题

解决ZABBIX中文乱码无法显示的问题

Windows字体目录地址

C:\Windows\Fonts

复制到zabbix服务器中

解决ZABBIX中文乱码无法显示的问题

查找Zabbix所使用的语言包

# find / -name *font* -print | grep zabbix

# ll `find / -name *font* -print | grep zabbix`

解决ZABBIX中文乱码无法显示的问题
[root@localhost ~]# find / -name *font* -print | grep zabbix/etc/alternatives/zabbix-web-font/var/lib/alternatives/zabbix-web-font/usr/share/zabbix/fonts/usr/share/zabbix/fonts/graphfont.ttf
[root@localhost ~]#
[root@localhost ~]# ll `find / -name *font* -print | grep zabbix`
lrwxrwxrwx. 1 root root 38 Apr  4 14:43 /etc/alternatives/zabbix-web-font -> /usr/share/fonts/dejavu/DejaVuSans.ttflrwxrwxrwx. 1 root root 33 Apr  4 14:43 /usr/share/zabbix/fonts/graphfont.ttf -> /etc/alternatives/zabbix-web-font-rw-r--r--. 1 root root 86 Apr  4 14:43 /var/lib/alternatives/zabbix-web-font/usr/share/zabbix/fonts:
total 0lrwxrwxrwx. 1 root root 33 Apr  4 14:43 graphfont.ttf -> /etc/alternatives/zabbix-web-font
[root@localhost ~]#
解决ZABBIX中文乱码无法显示的问题

 

备份本身语言包

# mv /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/fonts/dejavu/DejaVuSans.ttf.bak

替换成Windows的语言包

# mv simkai.ttf /usr/share/fonts/dejavu/DejaVuSans.ttf

解决ZABBIX中文乱码无法显示的问题
[root@localhost ~]# mv /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/fonts/dejavu/DejaVuSans.ttf.bak
[root@localhost ~]#
[root@localhost ~]# ls
anaconda-ks.cfg  simkai.ttf
[root@localhost ~]#
[root@localhost ~]# mv simkai.ttf /usr/share/fonts/dejavu/DejaVuSans.ttf
[root@localhost ~]#
解决ZABBIX中文乱码无法显示的问题

刷新页面已经恢复

解决ZABBIX中文乱码无法显示的问题


文章版权及转载声明

作者:chenzj本文地址:https://www.it-js.net/120.html发布于 2019-08-21
文章转载或复制请以超链接形式并注明出处IT技术

阅读
分享

发表评论

快捷回复:

评论列表 (暂无评论,184人围观)参与讨论

还没有评论,来说两句吧...