-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
6.4.1
-
None
-
Centos 7.9
1. install zabbix
--prefix=/usr/local/zabbix \ --enable-server \ --enable-agent \ --enable-agent2 \ --enable-java \ --enable-webservice \ --with-ssh2 \ --with-libcurl \ --with-libevent \ --with-libpcre \ --with-net-snmp \ --with-openssl=/opt/related/zabbix/openssl-1.1.1t \ --with-mysql=/usr/local/mysql/bin/mysql_config \ --with-openipmi=/opt/related/zabbix/OpenIPMI-2.0.32 \ --with-libxml2=/opt/related/php/libxml2-2.9.12/lib/pkgconfig
2. Create zabbix MySQL database
mysql -uroot -p<password> mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin; mysql> create user 'zabbix'@'localhost' identified by '<password>'; mysql> grant all privileges on zabbix. to 'zabbix'@'localhost';* mysql> SET GLOBAL log_bin_trust_function_creators = 1; mysql> quit;
3. my.cnf configures the default character set
[mysqld] character_set_server = UTF8MB4*
4. Upload windows local fonts to zabbix
(1). Font files are uploaded to the /zabbix/assets/fonts/ directory
(2). Set the file attribute to the web server user and group, and upload the font file to 644
(3). Modify the /zabbix/include/defines.inc.php file
Modify line 89 define('ZBX_GRAPH_FONT_NAME', '$fonts');
Modify line 147 define('ZBX_FONT_NAME', '$Fonts');
5. modified result
6. Desired result