目录

CentOS8Zabbix7.2.4解决中文显示问题

目录

CentOS8+Zabbix7.2.4解决中文显示问题

#cd /usr/share/zabbix/ui/include/

#grep graphfont defines.inc.php

define(‘ZBX_GRAPH_FONT_NAME’, ‘graphfont’); // font file name

define(‘ZBX_FONT_NAME’, ‘graphfont’);

#ll /usr/share/zabbix/ui/assets/fonts/graphfont.ttf

lrwxrwxrwx. 1 root root 36 3月 13 00:55 /usr/share/zabbix/ui/assets/fonts/graphfont.ttf -> /etc/alternatives/zabbix-web-ui-font

#ll /etc/alternatives/zabbix-web-ui-font

lrwxrwxrwx. 1 root root 38 3月 13 00:55 /etc/alternatives/zabbix-web-ui-font -> /usr/share/fonts/dejavu/DejaVuSans.ttf

#mv /etc/alternatives/zabbix-web-ui-font /etc/alternatives/zabbix-web-ui-font.xzfbak

#ln -s /usr/share/fonts/dejavu/simkai.ttf /etc/alternatives/zabbix-web-ui-font

PS D:> scp .\simkai.ttf :/usr/share/fonts/dejavu

The authenticity of host ‘192.168.100.201 (192.168.100.201)’ can’t be established.

ED25519 key fingerprint is SHA256:Bl7MbZgx4JoPiRXFpcw/09wr2BTu7oC3pY5sRLDYF9U.

This key is not known by any other names.

Are you sure you want to continue connecting (yes/no/[fingerprint])?

Warning: Permanently added ‘192.168.100.201’ (ED25519) to the list of known hosts.

’s password:

simkai.ttf 100% 11MB 56.8MB/s 00:00

PS D:>

https://i-blog.csdnimg.cn/direct/9a02346d9df24b4091756b4f77d81bb2.png