CentOS 7 安装 Zabbix 6.4 步骤
关闭防火墙和服务
systemctl stop firewalld.service
setenforce 0
安装 MySQL
- 配置 MySQL 源
wget https://dev.mysql.com/get/mysql80-community-release-el7-5.noarch.rpm
yum -y install mysql80-community-release-el7-5.noarch.rpm
- 安装 MySQL 相关依赖
yum -y install gcc-c++ mysql-devel net-snmp-devel libevent-devel
- 下载 MySQL
wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.28-1.el7.x86_64.rpm-bundle.tar
- 解压并安装 MySQL
mkdir /usr/local/mysql
tar xf mysql-8.0.28-1.el7.x86_64.rpm-bundle.tar -C /usr/local/mysql
cd /usr/local/mysql/
rpm -ivh mysql-community-* --force --nodeps
- 启动 MySQL 并设置开机自启
systemctl start mysqld
systemctl enable mysqld
安装 Zabbix 服务器
- 安装 Zabbix 服务器依赖
yum -y install gcc-c++ mysql-devel net-snmp