Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the garbled code in the web interface of zabbix 3.0?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

After building the zabbix, log in to the web interface, change the font to Chinese, and the data sent by the graphics appear garbled, because there is no Chinese font in the front end of the web.

1. Copy the font

Find any font in C:\ Windows\ Fonts in the window system and copy it out. I'm looking for simhei.ttf here.

2. Upload to zabbix server [root@zabbix ~] # cpsimhei.ttf / var/www/html/fonts3, modify permissions [root@zabbix fonts] # chmod 777 simhei.ttf [root@zabbix fonts] # chown zabbix:zabbix simhei.ttf4, and edit configuration file

Change the original graphfont to simhei.

[root@zabbix ~] # vim / var/www/html/include/defines.inc.php45 define ('ZBX_GRAPH_FONT_NAME',' simhei'); / / font file name93 define ('ZBX_FONT_NAME','simhei'); 5. Restart Apache service [root@zabbix ~] # / etc/init.d/httpd restart

Re-login to the web interface garbled has disappeared!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report