In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the zabbix installation process of Chinese garbled code how to do, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
The default language settings of the system can be modified through profile-> Language in the zabbix management interface. The default is English (en_GB). After selecting Chinese (zh_CN) through the drop-down option and pressing save to save, you can change the default language to Chinese. After the change is completed, most of the pages will be displayed fine, but in graphs such as maps or screen, Chinese characters will not be displayed-displayed as mouth. See the following figure for details:
The reason for this problem is that there is no Chinese font on the web side of zabbix, so just add the Chinese font. The solution can be accomplished by the following steps:
1. Copy the font file
Select a Chinese font such as "italics" from the control panel-> fonts-> under windows, and the copied font file is simkai.ttf.
Upload the copied font file to zabbix web's fonts directory via rz, such as: / var/www/html/zabbix/fonts, it is important to note that the suffix must be .tff (lowercase), because zabbix's font configuration file enters a font name without a suffix.
[root@localhost fonts] # ll / var/www/html/zabbix/fonts/total 4768 Murray RW Murray Ruby Murray. 1 apache apache 741536 May 26 05:49 DejaVuSans.ttf-rw-r--r-- 1 apache apache 4135804 Apr 14 2008 simkai.ttf2, modify defines.inc.php file
Modify the web side / include/defines.inc.php of zabbix:
[root@localhost ~] # vim / var/www/html/zabbix/include/defines.inc.php modifies the default font / / define ('ZBX_GRAPH_FONT_NAME',' DejaVuSans'); / / font file namedefine ('ZBX_GRAPH_FONT_NAME',' simkai'); / / font file name//define ('ZBX_FONT_NAME',' DejaVuSans'); define ('ZBX_FONT_NAME',' simkai') in the following two configuration files
After the modification is completed, refresh the page and the effect is as follows:
If you feel that the display is not beautiful enough, you can also change to a yakuza font, etc., the replacement method is the same as above.
Thank you for reading this article carefully. I hope the article "how to do Chinese garbled in the process of zabbix installation" shared by the editor will be helpful to everyone. At the same time, I also hope you can support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.