zabbix-proxy部署笔记
前提:配置好yum源
1. 安装mariadb-server
systemctl start mariadb.service
systemctl enable mariadb.service
mysql_secure_installation
2.创建数据库
mysql> create database zabbix_proxy character
set
utf8; # 创建数据库
mysql> grant all
on
zabbix_proxy.* to zabbix@localhost identified
by
'zabbix'
; # 创建授权用户
mysql> flush privileges;
# 刷新授权表,虽然不需要
mysql> use proxydb;
3.导入数据库
yum install -y zabbix-proxy-mysql.x86_64
yum install -y zabbix-sql-scripts.noarch
rpm -ql zabbix-sql-scripts
cd /usr/share/doc/zabbix-sql-scripts/mysql/
zcat schema.sql.gz |mysql -u zabbix -p zabbix_proxy
4.修改配置文件
vim /etc/zabbix/zabbix_proxy.conf
systemctl restart zabbix-proxy.service
完成!