MySQL 数据库服务版本。必须至少为 8.00.30
# rpm -Uvh https://repo.zabbix.com/zabbix/7.0/alma/9/x86_64/zabbix-release-7.0-5.el9.noarch.rpm
# dnf clean all
#安装zabbix
# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent
启动服务
# systemctl restart zabbix-server zabbix-agent nginx php-fpm
开机启动
# systemctl enable zabbix-server zabbix-agent nginx php-fpm
服务器设置SELINUX一定要关闭
1、暂时关闭
setenforce 0
2、永久关闭
vi /etc/selinux/config
3、修改配置项:SELINUX=disabled,默认:#SELINUX=enforcing
编辑配置文件 /etc/nginx/conf.d/zabbix.conf,去掉#号
listen 8080;
server_name example.com;
4、ALMALinux关闭防火墙
检查防火墙
命令:sudo systemctl status firewalld
Active: active (running) since Wed 2024-07-03 08:06:52 CST; 34min ago ----防火墙运行中
停止防火墙服务
sudo systemctl stop firewalld
禁用防火墙自启动
sudo systemctl disable firewalld
网页安装,修改:
/etc/zabbix/zabbix_server.conf 安装这个不需要修改也可以的
/etc/zabbix/web/zabbix.conf.php 安装完成这里也存在数据库密码