yum -y install mariadb-server mysql -uroot -p create database zabbix_proxy defaults charset utf8; grant all privileges on zabbix_proxy.* to zabbix_proxy@'localhost' identified by '123456';
导入zabbix-proxy SQL:
1 2
cd /usr/share/doc/zabbix-proxy-mysql-4.0.27/ zcat schema.sql.gz |mysql -uzabbix_proxy -p zabbix_proxy
## 重启server来加速 [root@zabbix ~]# systemctl restart zabbix-server.service ### 重启proxy [root@bj_proxy ~]$systemctl restart zabbix-proxy.service [root@bj_proxy ~]$tailf /var/log/zabbix/zabbix_proxy.log 60540:20210120:163621.926 only character set "utf8" and collation "utf8_bin" should be used in database 60540:20210120:163621.926 proxy #0 started [main process] 60545:20210120:163621.926 proxy #1 started [configuration syncer #1] 60545:20210120:163621.939 received configuration data from server at "10.1.1.200", datalen 3516