1 安装zabbix服务端和客户端
1.1安装yum仓库
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
yum clean all
1.2安装zabbix
yum install zabbix-server-mysql zabbix-agent
2 安装zabbix前端
2.1 安装redhat源
yum install centos-release-scl -y
2.2 启用zabbix-frontend 仓库。
编辑配置文件 /etc/yum.repos.d/zabbix.repo,启用zabbix-frontend 仓库。
[zabbix-frontend]
…
enabled=1
…
2.3 安装前端
yum install zabbix-web-mysql-scl zabbix-nginx-conf-scl -y
3 安装mysql数据库
wget https://dev.mysql.com/get/mysql80-community-release-el7-7.noarch.rpm
rpm -ivh mysql80-community-release-el7-7.noarch.rpm
vi /etc/yum.repos.d/mysql-community.repo
把5.7的enable=1 8.0的enable=0
检查下是否生效
yum list |grep ^mysql 看下是否是5.7
yum install mysql-community-server
systemctl start