安装Zabbix7

配置安装源

bash 复制代码
rpm -Uvh https://repo.zabbix.com/zabbix/7.0/rocky/9/x86_64/zabbix-release-7.0-5.el9.noarch.rpm

三、安装Zabbix server,Web前端,

bash 复制代码
agent yum install zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent -y

四、安装mysql-server 打开 启动 进入mysql 确保数据库启动中。

bash 复制代码
# mysql  mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin; mysql> create user zabbix@localhost identified by 'zabbix'; mysql> grant all privileges on zabbix.* to zabbix@localhost; mysql> set global log_bin_trust_function_creators = 1; mysql> quit;
bash 复制代码
上次元数据过期检查:0:06:12 前,执行于 2025年11月06日 星期四 21时05分29秒。
依赖关系解决。
======================================================
 软件包        架构   版本            仓库       大小
======================================================
安装:
 mysql-server  x86_64 8.0.43-1.el9_6  appstream  17 M
升级:
 selinux-policy
               noarch 38.1.53-5.el9_6 baseos     44 k
 selinux-policy-targeted
               noarch 38.1.53-5.el9_6 baseos    6.5 M
安装依赖关系:
 mariadb-connector-c-config
               noarch 3.2.6-1.el9_0   appstream 9.8 k
 mecab         x86_64 0.996-3.el9.4   appstream 346 k
 mysql         x86_64 8.0.43-1.el9_6  appstream 2.8 M
 mysql-common  x86_64 8.0.43-1.el9_6  appstream  68 k
 mysql-errmsg  x86_64 8.0.43-1.el9_6  appstream 498 k
 mysql-selinux noarch 1.0.14-1.el9_6  appstream  36 k
 protobuf-lite x86_64 3.14.0-16.el9   appstream 231 k

事务概要
======================================================
安装  8 软件包
升级  2 软件包

总下载:27 M
下载软件包:
(1/10): mariadb-conne  65 kB/s | 9.8 kB     00:00    
(2/10): mysql-errmsg- 1.0 MB/s | 498 kB     00:00    
(3/10): mecab-0.996-3 708 kB/s | 346 kB     00:00    
(4/10): mysql-common- 851 kB/s |  68 kB     00:00    
(5/10): mysql-selinux 512 kB/s |  36 kB     00:00    
(6/10): protobuf-lite 420 kB/s | 231 kB     00:00    
(7/10): selinux-polic 228 kB/s |  44 kB     00:00    
(8/10): mysql-8.0.43- 878 kB/s | 2.8 MB     00:03    
(9/10): selinux-polic 874 kB/s | 6.5 MB     00:07    
(10/10): mysql-server 2.0 MB/s |  17 MB     00:08    
------------------------------------------------------
总计                  2.1 MB/s |  27 MB     00:13     
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
  运行脚本: selinux-policy-targeted-38.1.53-5.e   1/1 
  准备中  :                                       1/1 
  升级    : selinux-policy-38.1.53-5.el9_6.no    1/12 
  运行脚本: selinux-policy-38.1.53-5.el9_6.no    1/12 
  运行脚本: selinux-policy-targeted-38.1.53-5    2/12 
  升级    : selinux-policy-targeted-38.1.53-5    2/12 
  运行脚本: selinux-policy-targeted-38.1.53-5    2/12 
  安装    : mariadb-connector-c-config-3.2.6-    3/12 
  安装    : mysql-common-8.0.43-1.el9_6.x86_6    4/12 
  安装    : mysql-errmsg-8.0.43-1.el9_6.x86_6    5/12 
  安装    : mysql-8.0.43-1.el9_6.x86_64          6/12 
  运行脚本: mysql-selinux-1.0.14-1.el9_6.noar    7/12 
  安装    : mysql-selinux-1.0.14-1.el9_6.noar    7/12 
  运行脚本: mysql-selinux-1.0.14-1.el9_6.noar    7/12 
libsemanage.semanage_direct_install_info: Overriding mysql module at lower priority 100 with module at priority 200.

  安装    : protobuf-lite-3.14.0-16.el9.x86_6    8/12 
  安装    : mecab-0.996-3.el9.4.x86_64           9/12 
  运行脚本: mysql-server-8.0.43-1.el9_6.x86_6   10/12 
  安装    : mysql-server-8.0.43-1.el9_6.x86_6   10/12 
  运行脚本: mysql-server-8.0.43-1.el9_6.x86_6   10/12 
  运行脚本: selinux-policy-38.1.35-2.el9_4.0.   11/12 
  清理    : selinux-policy-38.1.35-2.el9_4.0.   11/12 
  运行脚本: selinux-policy-38.1.35-2.el9_4.0.   11/12 
  清理    : selinux-policy-targeted-38.1.35-2   12/12 
  运行脚本: selinux-policy-targeted-38.1.35-2   12/12 
  运行脚本: selinux-policy-targeted-38.1.53-5   12/12 
  运行脚本: mysql-selinux-1.0.14-1.el9_6.noar   12/12 
  运行脚本: selinux-policy-targeted-38.1.35-2   12/12 
  验证    : mariadb-connector-c-config-3.2.6-    1/12 
  验证    : mecab-0.996-3.el9.4.x86_64           2/12 
  验证    : mysql-errmsg-8.0.43-1.el9_6.x86_6    3/12 
  验证    : protobuf-lite-3.14.0-16.el9.x86_6    4/12 
  验证    : mysql-common-8.0.43-1.el9_6.x86_6    5/12 
  验证    : mysql-selinux-1.0.14-1.el9_6.noar    6/12 
  验证    : mysql-server-8.0.43-1.el9_6.x86_6    7/12 
  验证    : mysql-8.0.43-1.el9_6.x86_64          8/12 
  验证    : selinux-policy-38.1.53-5.el9_6.no    9/12 
  验证    : selinux-policy-38.1.35-2.el9_4.0.   10/12 
  验证    : selinux-policy-targeted-38.1.53-5   11/12 
  验证    : selinux-policy-targeted-38.1.35-2   12/12 

已升级:
  selinux-policy-38.1.53-5.el9_6.noarch               
  selinux-policy-targeted-38.1.53-5.el9_6.noarch      
已安装:
  mariadb-connector-c-config-3.2.6-1.el9_0.noarch     
  mecab-0.996-3.el9.4.x86_64                          
  mysql-8.0.43-1.el9_6.x86_64                         
  mysql-common-8.0.43-1.el9_6.x86_64                  
  mysql-errmsg-8.0.43-1.el9_6.x86_64                  
  mysql-selinux-1.0.14-1.el9_6.noarch                 
  mysql-server-8.0.43-1.el9_6.x86_64                  
  protobuf-lite-3.14.0-16.el9.x86_64                  

完毕!
bash 复制代码
[root@proxy1 ~]# cd /etc/nginx/
[root@proxy1 nginx]# ls
conf.d                  mime.types.default
default.d               nginx.conf
fastcgi.conf            nginx.conf.default
fastcgi.conf.default    scgi_params
fastcgi_params          scgi_params.default
fastcgi_params.default  uwsgi_params
koi-utf                 uwsgi_params.default
koi-win                 win-utf
mime.types
[root@proxy1 nginx]# cd conf.d/
[root@proxy1 conf.d]# ls
[root@proxy1 conf.d]# vim zabbix.conf
bash 复制代码
apt update && apt install -y wget vim net-tools
上次元数据过期检查:0:12:17 前,执行于 2025年11月06日 星期四 21时05分29秒。
软件包 wget-1.21.1-7.el9.x86_64 已安装。
软件包 vim-enhanced-2:8.2.2637-20.el9_1.x86_64 已安装。
软件包 net-tools-2.0-0.62.20160912git.el9.x86_64 已安装。
依赖关系解决。
======================================================
 软件包
      架构   版本                     仓库       大小
======================================================
升级:
 net-tools
      x86_64 2.0-0.64.20160912git.el9 baseos    294 k
 vim-common
      x86_64 2:8.2.2637-22.el9_6.1    appstream 6.6 M
 vim-enhanced
      x86_64 2:8.2.2637-22.el9_6.1    appstream 1.7 M
 wget x86_64 1.21.1-8.el9_4           appstream 768 k

事务概要
======================================================
升级  4 软件包

总下载:9.4 M
下载软件包:
(1/4): net-tools-2.0- 142 kB/s | 294 kB     00:02    
(2/4): wget-1.21.1-8. 272 kB/s | 768 kB     00:02    
(3/4): vim-enhanced-8 171 kB/s | 1.7 MB     00:10    
(4/4): vim-common-8.2 415 kB/s | 6.6 MB     00:16    
------------------------------------------------------
总计                  529 kB/s | 9.4 MB     00:18     
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
  准备中  :                                       1/1 
  升级    : vim-common-2:8.2.2637-22.el9_6.1.x8   1/8 
  升级    : vim-enhanced-2:8.2.2637-22.el9_6.1.   2/8 
  升级    : wget-1.21.1-8.el9_4.x86_64            3/8 
  升级    : net-tools-2.0-0.64.20160912git.el9.   4/8 
  运行脚本: net-tools-2.0-0.64.20160912git.el9.   4/8 
  清理    : vim-enhanced-2:8.2.2637-20.el9_1.x8   5/8 
  清理    : vim-common-2:8.2.2637-20.el9_1.x86_   6/8 
  清理    : wget-1.21.1-7.el9.x86_64              7/8 
  清理    : net-tools-2.0-0.62.20160912git.el9.   8/8 
  运行脚本: net-tools-2.0-0.62.20160912git.el9.   8/8 
  验证    : net-tools-2.0-0.64.20160912git.el9.   1/8 
  验证    : net-tools-2.0-0.62.20160912git.el9.   2/8 
  验证    : vim-enhanced-2:8.2.2637-22.el9_6.1.   3/8 
  验证    : vim-enhanced-2:8.2.2637-20.el9_1.x8   4/8 
  验证    : vim-common-2:8.2.2637-22.el9_6.1.x8   5/8 
  验证    : vim-common-2:8.2.2637-20.el9_1.x86_   6/8 
  验证    : wget-1.21.1-8.el9_4.x86_64            7/8 
  验证    : wget-1.21.1-7.el9.x86_64              8/8 

已升级:
  net-tools-2.0-0.64.20160912git.el9.x86_64           
  vim-common-2:8.2.2637-22.el9_6.1.x86_64             
  vim-enhanced-2:8.2.2637-22.el9_6.1.x86_64           
  wget-1.21.1-8.el9_4.x86_64                          

完毕!
bash: apt: 未找到命令...
安装软件包"apt"以提供命令"apt"? [N/y] y


 * 正在队列中等待... 
 * 正在载入软件包列表。... 
下列软件包必须安装:
 apt-2.9.8-1.el9.x86_64 Command-line package manager for Debian packages
 apt-libs-2.9.8-1.el9.x86_64    Runtime libraries for apt
 dpkg-1.22.20-1.el9.x86_64      Package maintenance system for Debian Linux
 libmd-1.1.0-1.el9.x86_64       Library that provides message digest functions from BSD systems
 xxhash-libs-0.8.2-1.el9.x86_64 Extremely fast hash algorithm - library
继续更改? [N/y] y


 * 正在队列中等待... 
 * 正在等待认证... 
 * 正在队列中等待... 
 * 正在下载软件包... 
 * 正在请求数据... 
 * 正在测试更改... 
 * 正在安装软件包... 
所有软件包均为最新。                          
bash 复制代码
rpm -Uvh https://repo.zabbix.com/zabbix/6.4/rhel/8/x86_64/zabbix-release-6.4-1.el8.noarch.rpm
dnf clean all && dnf makecache

# Ubuntu 22.04
wget https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb
dpkg -i zabbix-release_6.4-1+ubuntu22.04_all.deb
apt update
获取https://repo.zabbix.com/zabbix/6.4/rhel/8/x86_64/zabbix-release-6.4-1.el8.noarch.rpm
警告:/var/tmp/rpm-tmp.HEA6XH: 头V4 RSA/SHA512 Signature, 密钥 ID a14fe591: NOKEY
Verifying...                                          ################################# [100%]
准备中...                                             ################################# [100%]
        软件包 zabbix-release-7.0-5.el9.noarch (比 zabbix-release-6.4-1.el8.noarch 还要新) 已经安装
56 个文件已删除
Extra Packages for En 2.0 MB/s |  20 MB     00:09    
Extra Packages for En 319  B/s | 2.5 kB     00:07    
Rocky Linux 9 - BaseO 159 kB/s | 2.5 MB     00:16    
Rocky Linux 9 - AppSt 419 kB/s | 9.5 MB     00:23    
Rocky Linux 9 - Extra  10 kB/s |  17 kB     00:01    
Zabbix Official Repos 145 kB/s | 425 kB     00:02    
Zabbix Official Repos 496  B/s | 1.1 kB     00:02    
Zabbix Official Repos 951  B/s | 2.2 kB     00:02    
元数据缓存已建立。
--2025-11-06 21:20:13--  https://repo.zabbix.com/zabbix/6.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb
正在解析主机 repo.zabbix.com (repo.zabbix.com)... 178.128.6.101, 2604:a880:2:d0::2062:d001
正在连接 repo.zabbix.com (repo.zabbix.com)|178.128.6.101|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:3744 (3.7K) [application/octet-stream]
正在保存至: "zabbix-release_6.4-1+ubuntu22.04_all.deb"

zabbix-releas 100%   3.66K  --.-KB/s  用时 0s        

2025-11-06 21:20:14 (201 MB/s) - 已保存 "zabbix-release_6.4-1+ubuntu22.04_all.deb" [3744/3744])

正在选中未选择的软件包 zabbix-release。
(正在读取数据库 ... 系统当前共安装有 0 个文件和目录。)
准备解压 zabbix-release_6.4-1+ubuntu22.04_all.deb  ...
正在解压 zabbix-release (1:6.4-1+ubuntu22.04) ...
正在设置 zabbix-release (1:6.4-1+ubuntu22.04) ...
获取:1 https://repo.zabbix.com/zabbix/6.4/ubuntu jammy InRelease [2,883 B]
获取:2 https://repo.zabbix.com/zabbix/6.4/ubuntu jammy/main Sources [23.8 kB]
获取:3 https://repo.zabbix.com/zabbix/6.4/ubuntu jammy/main all Packages [12.7 kB]
获取:4 https://repo.zabbix.com/zabbix/6.4/ubuntu jammy/main amd64 Packages [63.5 kB]
已下载 103 kB,耗时 2秒 (45.4 kB/s) 
所有软件包均为最新。                           
[root@proxy1 conf.d]# # CentOS 8 安装Server+MySQL客户 端+Web模块
dnf install -y zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf mariadb-server

# Ubuntu 22.04 安装Server+MySQL客户端+Web模块
apt install -y zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf mysql-server
上次元数据过期检查:0:00:15 前,执行于 2025年11月06日 星期四 21时20分12秒。
错误:
 问题 1: 安装的软件包的问题 mysql-server-8.0.43-1.el9_6.x86_64
  - package mysql-server-8.0.43-1.el9_6.x86_64 from @System conflicts with mariadb-server provided by mariadb-server-3:10.5.27-1.el9_5.0.2.x86_64 from appstream
  - package mariadb-server-3:10.5.27-1.el9_5.0.2.x86_64 from appstream conflicts with mysql-server provided by mysql-server-8.0.43-1.el9_6.x86_64 from @System
  - package mariadb-server-3:10.5.27-1.el9_5.0.2.x86_64 from appstream conflicts with mysql-server provided by mysql-server-8.0.43-1.el9_6.x86_64 from appstream
  - package mysql-server-8.0.43-1.el9_6.x86_64 from appstream conflicts with mariadb-server provided by mariadb-server-3:10.5.27-1.el9_5.0.2.x86_64 from appstream
  - 冲突的请求
 问题 2: package zabbix-web-deps-7.0.21-release2.el9.noarch from zabbix requires zabbix-web = 7.0.21-release2.el9, but none of the providers can be installed
  - cannot install both zabbix-web-7.0.21-release2.el9.noarch from zabbix and zabbix-web-1:6.0.42-1.el9.noarch from epel
  - package zabbix-apache-conf-7.0.21-release2.el9.noarch from zabbix requires zabbix-web-deps = 7.0.21-release2.el9, but none of the providers can be installed
  - package zabbix-web-mysql-1:6.0.42-1.el9.noarch from epel requires zabbix-web = 1:6.0.42-1.el9, but none of the providers can be installed
  - 无法为该任务安装最佳候选
(尝试在命令行中添加 '--allowerasing' 来替换冲突的软件包 或 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用软件包的最佳候选)
bash 复制代码
[root@proxy1 conf.d]# systemctl disable --now firewalld
setenforce 0
[root@proxy1 conf.d]# hostnamectl set-hostname zabbix-server
[root@proxy1 conf.d]# yum remove zabbix-web zabbix-web-mysql -y
未找到匹配的参数: zabbix-web
未找到匹配的参数: zabbix-web-mysql
没有软件包需要移除。
依赖关系解决。
无需任何处理。
完毕!
[root@proxy1 conf.d]# yum install -y zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent mysql-community-server --allowerasing
上次元数据过期检查:0:02:23 前,执行于 2025年11月06日 星期四 21时20分12秒。
未找到匹配的参数: mysql-community-server
错误:没有任何匹配: mysql-community-server
[root@proxy1 conf.d]# cd
[root@proxy1 ~]# yum install -y zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent mysql-community-server --allowerasing
上次元数据过期检查:0:02:40 前,执行于 2025年11月06日 星期四 21时20分12秒。
bash 复制代码
[root@proxy1 /]# wget https://dev.mysql.com/get/mysql80-community-release-el9-1.noarch.rpm
rpm -ivh mysql80-community-release-el9-1.noarch.rpm
--2025-11-06 21:25:58--  https://dev.mysql.com/get/mysql80-community-release-el9-1.noarch.rpm
正在解析主机 dev.mysql.com (dev.mysql.com)... 184.27.161.219, 2a02:26f0:e200:7a9::2e31, 2a02:26f0:e200:797::2e31
正在连接 dev.mysql.com (dev.mysql.com)|184.27.161.219|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Moved Temporarily
位置:https://repo.mysql.com//mysql80-community-release-el9-1.noarch.rpm [跟随至新的 URL]
--2025-11-06 21:25:59--  https://repo.mysql.com//mysql80-community-release-el9-1.noarch.rpm
正在解析主机 repo.mysql.com (repo.mysql.com)... 104.83.115.176, 2a02:26f0:de:29f::1d68, 2a02:26f0:de:297::1d68
正在连接 repo.mysql.com (repo.mysql.com)|104.83.115.176|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:10534 (10K) [application/x-redhat-package-manager]
正在保存至: "mysql80-community-release-el9-1.noarch.rpm"

mysql80-commu 100%  10.29K  --.-KB/s  用时 0s        

2025-11-06 21:26:00 (391 MB/s) - 已保存 "mysql80-community-release-el9-1.noarch.rpm" [10534/10534])

警告:mysql80-community-release-el9-1.noarch.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 3a79bd29: NOKEY
Verifying...                                          ################################# [100%]
准备中...                                             ################################# [100%]
正在升级/安装...
   1:mysql80-community-release-el9-1                  ################################# [100%]
[root@proxy1 /]# yum install -y zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent mysql-community-server --allowerasing
MySQL 8.0 Community S 366 kB/s | 2.9 MB     00:08    
MySQL Connectors Comm  68 kB/s |  98 kB     00:01    
MySQL Tools Community 358 kB/s | 1.3 MB     00:03    
上次元数据过期检查:0:00:01 前,执行于 2025年11月06日 星期四 21时26分22秒。
bash 复制代码
[root@proxy1 /]# vim /etc/yum.repos.d/epel.repo
[root@proxy1 /]# yum clean all
yum makecache
# 重新安装所需组件,使用--allowerasing确保依赖兼容
yum install -y zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent --allowerasing
71 个文件已删除
Extra Packages for En 763 kB/s |  20 MB     00:26    
Extra Packages for En 129  B/s | 2.5 kB     00:19    
MySQL 8.0 Community S 779 kB/s | 2.9 MB     00:03    
MySQL Connectors Comm  55 kB/s |  98 kB     00:01    
MySQL Tools Community  44 kB/s | 1.3 MB     00:30    
Rocky Linux 9 - BaseO 860 kB/s | 2.5 MB     00:02    
Rocky Linux 9 - AppSt 166 kB/s | 9.5 MB     00:58    
Rocky Linux 9 - Extra 6.3 kB/s |  17 kB     00:02    
Zabbix Official Repos  22 kB/s | 425 kB     00:19    
Zabbix Official Repos 308  B/s | 1.1 kB     00:03    
Zabbix Official Repos 705  B/s | 2.2 kB     00:03    
元数据缓存已建立。
上次元数据过期检查:0:00:03 前,执行于 2025年11月06日 星期四 21时34分48秒。
bash 复制代码
[root@proxy1 conf.d]# rm zabbix-release_6.4-1+ubuntu22.04_all.deb
rm:是否删除普通文件 'zabbix-release_6.4-1+ubuntu22.04_all.deb'?y
[root@proxy1 conf.d]# ls
zabbix.conf
[root@proxy1 conf.d]# dnf install -y nginx
上次元数据过期检查:0:09:16 前,执行于 2025年11月06日 星期四 21时34分48秒。
依赖关系解决。
======================================================
 软件包    架构   版本                仓库       大小
======================================================
安装:
 nginx     x86_64 2:1.20.1-22.el9_6.3 appstream  36 k
安装依赖关系:
 rocky-logos-httpd
           noarch 90.16-1.el9         appstream  24 k

事务概要
======================================================
安装  2 软件包

总下载:60 k
安装大小:171 k
下载软件包:
(1/2): rocky-logos-ht  34 kB/s |  24 kB     00:00    
(2/2): nginx-1.20.1-2  34 kB/s |  36 kB     00:01    
------------------------------------------------------
总计                   26 kB/s |  60 kB     00:02     
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
  准备中  :                                       1/1 
  安装    : rocky-logos-httpd-90.16-1.el9.noarc   1/2 
  安装    : nginx-2:1.20.1-22.el9_6.3.x86_64      2/2 
  运行脚本: nginx-2:1.20.1-22.el9_6.3.x86_64      2/2 
Removed "/etc/systemd/system/multi-user.target.wants/nginx.service".

  验证    : rocky-logos-httpd-90.16-1.el9.noarc   1/2 
  验证    : nginx-2:1.20.1-22.el9_6.3.x86_64      2/2 

已安装:
  nginx-2:1.20.1-22.el9_6.3.x86_64                    
  rocky-logos-httpd-90.16-1.el9.noarch                

完毕!
bash 复制代码
[root@proxy1 conf.d]# wget https://dev.mysql.com/get/mysql80-community-release-el9-1.noarch.rpm
rpm -ivh mysql80-community-release-el9-1.noarch.rpm
--2025-11-06 21:45:22--  https://dev.mysql.com/get/mysql80-community-release-el9-1.noarch.rpm
正在解析主机 dev.mysql.com (dev.mysql.com)... 104.82.91.242, 2a02:26f0:9100:58a::2e31, 2a02:26f0:9100:595::2e31
正在连接 dev.mysql.com (dev.mysql.com)|104.82.91.242|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Moved Temporarily
位置:https://repo.mysql.com//mysql80-community-release-el9-1.noarch.rpm [跟随至新的 URL]
--2025-11-06 21:45:23--  https://repo.mysql.com//mysql80-community-release-el9-1.noarch.rpm
正在解析主机 repo.mysql.com (repo.mysql.com)... 104.83.115.176, 2a02:26f0:de:389::1d68, 2a02:26f0:de:388::1d68
正在连接 repo.mysql.com (repo.mysql.com)|104.83.115.176|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:10534 (10K) [application/x-redhat-package-manager]
正在保存至: "mysql80-community-release-el9-1.noarch.rpm"

mysql80-commu 100%  10.29K  --.-KB/s  用时 0s        

2025-11-06 21:45:24 (188 MB/s) - 已保存 "mysql80-community-release-el9-1.noarch.rpm" [10534/10534])

警告:mysql80-community-release-el9-1.noarch.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 3a79bd29: NOKEY
Verifying...                                          ################################# [100%]
准备中...                                             ################################# [100%]
        软件包 mysql80-community-release-el9-1.noarch 已经安装
bash 复制代码
安装  6 软件包

总计:59 M
下载软件包:
[SKIPPED] mysql-community-client-8.0.44-1.el9.x86_64.rpm: Already downloaded
[SKIPPED] mysql-community-client-plugins-8.0.44-1.el9.x86_64.rpm: Already downloaded
[SKIPPED] mysql-community-common-8.0.44-1.el9.x86_64.rpm: Already downloaded
[SKIPPED] mysql-community-icu-data-files-8.0.44-1.el9.x86_64.rpm: Already downloaded
[SKIPPED] mysql-community-libs-8.0.44-1.el9.x86_64.rpm: Already downloaded
[SKIPPED] mysql-community-server-8.0.44-1.el9.x86_64.rpm: Already downloaded
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
  准备中  :                                       1/1 
  安装    : mysql-community-common-8.0.44-1.el9   1/9 
  安装    : mysql-community-client-plugins-8.0.   2/9 
  安装    : mysql-community-libs-8.0.44-1.el9.x   3/9 
  运行脚本: mysql-community-libs-8.0.44-1.el9.x   3/9 
  安装    : mysql-community-client-8.0.44-1.el9   4/9 
  安装    : mysql-community-icu-data-files-8.0.   5/9 
  运行脚本: mysql-community-server-8.0.44-1.el9   6/9 
  安装    : mysql-community-server-8.0.44-1.el9   6/9 
  运行脚本: mysql-community-server-8.0.44-1.el9   6/9 
  运行脚本: mysql-server-8.0.43-1.el9_6.x86_64    7/9 
Removed "/etc/systemd/system/multi-user.target.wants/mysqld.service".

  废弃    : mysql-server-8.0.43-1.el9_6.x86_64    7/9 
  运行脚本: mysql-server-8.0.43-1.el9_6.x86_64    7/9 
  废弃    : mariadb-connector-c-config-3.2.6-1.   8/9 
  废弃    : mysql-8.0.43-1.el9_6.x86_64           9/9 
  运行脚本: mysql-8.0.43-1.el9_6.x86_64           9/9 
  验证    : mysql-community-client-8.0.44-1.el9   1/9 
  验证    : mysql-8.0.43-1.el9_6.x86_64           2/9 
  验证    : mysql-community-client-plugins-8.0.   3/9 
  验证    : mysql-community-common-8.0.44-1.el9   4/9 
  验证    : mysql-community-icu-data-files-8.0.   5/9 
  验证    : mysql-community-libs-8.0.44-1.el9.x   6/9 
  验证    : mysql-community-server-8.0.44-1.el9   7/9 
  验证    : mariadb-connector-c-config-3.2.6-1.   8/9 
  验证    : mysql-server-8.0.43-1.el9_6.x86_64    9/9 

已安装:
  mysql-community-client-8.0.44-1.el9.x86_64          
  mysql-community-client-plugins-8.0.44-1.el9.x86_64  
  mysql-community-common-8.0.44-1.el9.x86_64          
  mysql-community-icu-data-files-8.0.44-1.el9.x86_64  
  mysql-community-libs-8.0.44-1.el9.x86_64            
  mysql-community-server-8.0.44-1.el9.x86_64          

完毕!
[root@proxy1 conf.d]# dnf install -y mysql-community-server
上次元数据过期检查:0:19:46 前,执行于 2025年11月06日 星期四 21时34分48秒。
软件包 mysql-community-server-8.0.44-1.el9.x86_64 已安装。
依赖关系解决。
无需任何处理。
完毕!
bash 复制代码
[root@proxy1 conf.d]# dnf install -y php php-fpm php-mysqlnd php-pdo php-gd php-xml php-mbstring
上次元数据过期检查:0:24:24 前,执行于 2025年11月06日 星期四 21时34分48秒。
依赖关系解决。
======================================================
 软件包       架构   版本             仓库       大小
======================================================
安装:
 php          x86_64 8.0.30-3.el9_6   appstream 8.2 k
 php-fpm      x86_64 8.0.30-3.el9_6   appstream 1.6 M
 php-gd       x86_64 8.0.30-3.el9_6   appstream  39 k
 php-mbstring x86_64 8.0.30-3.el9_6   appstream 466 k
 php-mysqlnd  x86_64 8.0.30-3.el9_6   appstream 150 k
 php-pdo      x86_64 8.0.30-3.el9_6   appstream  81 k
 php-xml      x86_64 8.0.30-3.el9_6   appstream 132 k
安装依赖关系:
 apr          x86_64 1.7.0-12.el9_3   appstream 122 k
 apr-util     x86_64 1.6.1-23.el9     appstream  94 k
 apr-util-bdb x86_64 1.6.1-23.el9     appstream  12 k
 httpd-core   x86_64 2.4.62-4.el9_6.4 appstream 1.4 M
 httpd-filesystem
              noarch 2.4.62-4.el9_6.4 appstream  11 k
 httpd-tools  x86_64 2.4.62-4.el9_6.4 appstream  78 k
 php-common   x86_64 8.0.30-3.el9_6   appstream 666 k
安装弱的依赖:
 apr-util-openssl
              x86_64 1.6.1-23.el9     appstream  14 k
 httpd        x86_64 2.4.62-4.el9_6.4 appstream  44 k
 mod_http2    x86_64 2.0.26-4.el9_6.1 appstream 163 k
 mod_lua      x86_64 2.4.62-4.el9_6.4 appstream  58 k
 php-cli      x86_64 8.0.30-3.el9_6   appstream 3.1 M
 php-opcache  x86_64 8.0.30-3.el9_6   appstream 510 k

事务概要
======================================================
安装  20 软件包

总下载:8.6 M
安装大小:42 M
下载软件包:
(1/20): apr-util-bdb-  48 kB/s |  12 kB     00:00    
(2/20): php-xml-8.0.3 380 kB/s | 132 kB     00:00    
(3/20): php-opcache-8 1.0 MB/s | 510 kB     00:00    
(4/20): httpd-tools-2 211 kB/s |  78 kB     00:00    
(5/20): php-fpm-8.0.3 2.0 MB/s | 1.6 MB     00:00    
(6/20): httpd-2.4.62-  78 kB/s |  44 kB     00:00    
(7/20): apr-util-1.6.  87 kB/s |  94 kB     00:01    
(8/20): php-common-8. 522 kB/s | 666 kB     00:01    
(9/20): php-cli-8.0.3 1.7 MB/s | 3.1 MB     00:01    
(10/20): httpd-core-2 1.8 MB/s | 1.4 MB     00:00    
(11/20): php-8.0.30-3  15 kB/s | 8.2 kB     00:00    
(12/20): httpd-filesy  31 kB/s |  11 kB     00:00    
(13/20): php-pdo-8.0. 1.2 MB/s |  81 kB     00:00    
(14/20): mod_lua-2.4. 511 kB/s |  58 kB     00:00    
(15/20): mod_http2-2. 1.0 MB/s | 163 kB     00:00    
(16/20): php-mbstring 1.9 MB/s | 466 kB     00:00    
(17/20): apr-util-ope  72 kB/s |  14 kB     00:00    
(18/20): apr-1.7.0-12 671 kB/s | 122 kB     00:00    
(19/20): php-gd-8.0.3 701 kB/s |  39 kB     00:00    
(20/20): php-mysqlnd- 1.5 MB/s | 150 kB     00:00    
------------------------------------------------------
总计                  1.8 MB/s | 8.6 MB     00:04     
运行事务检查
事务检查成功。
运行事务测试
事务测试成功。
运行事务
  准备中  :                                       1/1 
  安装    : php-common-8.0.30-3.el9_6.x86_64     1/20 
  安装    : apr-1.7.0-12.el9_3.x86_64            2/20 
  安装    : apr-util-openssl-1.6.1-23.el9.x86    3/20 
  安装    : apr-util-1.6.1-23.el9.x86_64         4/20 
  安装    : apr-util-bdb-1.6.1-23.el9.x86_64     5/20 
  安装    : php-pdo-8.0.30-3.el9_6.x86_64        6/20 
  运行脚本: httpd-filesystem-2.4.62-4.el9_6.4    7/20 
  安装    : httpd-filesystem-2.4.62-4.el9_6.4    7/20 
  安装    : php-fpm-8.0.30-3.el9_6.x86_64        8/20 
  运行脚本: php-fpm-8.0.30-3.el9_6.x86_64        8/20 
  安装    : httpd-tools-2.4.62-4.el9_6.4.x86_    9/20 
  安装    : httpd-core-2.4.62-4.el9_6.4.x86_6   10/20 
  安装    : mod_lua-2.4.62-4.el9_6.4.x86_64     11/20 
  安装    : httpd-2.4.62-4.el9_6.4.x86_64       12/20 
  运行脚本: httpd-2.4.62-4.el9_6.4.x86_64       12/20 
  安装    : mod_http2-2.0.26-4.el9_6.1.x86_64   13/20 
  安装    : php-opcache-8.0.30-3.el9_6.x86_64   14/20 
  安装    : php-xml-8.0.30-3.el9_6.x86_64       15/20 
  安装    : php-cli-8.0.30-3.el9_6.x86_64       16/20 
  安装    : php-mbstring-8.0.30-3.el9_6.x86_6   17/20 
  安装    : php-8.0.30-3.el9_6.x86_64           18/20 
  安装    : php-mysqlnd-8.0.30-3.el9_6.x86_64   19/20 
  安装    : php-gd-8.0.30-3.el9_6.x86_64        20/20 
  运行脚本: httpd-2.4.62-4.el9_6.4.x86_64       20/20 
  运行脚本: php-gd-8.0.30-3.el9_6.x86_64        20/20 
  验证    : php-opcache-8.0.30-3.el9_6.x86_64    1/20 
  验证    : php-xml-8.0.30-3.el9_6.x86_64        2/20 
  验证    : apr-util-bdb-1.6.1-23.el9.x86_64     3/20 
  验证    : php-fpm-8.0.30-3.el9_6.x86_64        4/20 
  验证    : httpd-tools-2.4.62-4.el9_6.4.x86_    5/20 
  验证    : httpd-2.4.62-4.el9_6.4.x86_64        6/20 
  验证    : php-cli-8.0.30-3.el9_6.x86_64        7/20 
  验证    : apr-util-1.6.1-23.el9.x86_64         8/20 
  验证    : php-common-8.0.30-3.el9_6.x86_64     9/20 
  验证    : httpd-core-2.4.62-4.el9_6.4.x86_6   10/20 
  验证    : php-8.0.30-3.el9_6.x86_64           11/20 
  验证    : httpd-filesystem-2.4.62-4.el9_6.4   12/20 
  验证    : php-pdo-8.0.30-3.el9_6.x86_64       13/20 
  验证    : mod_lua-2.4.62-4.el9_6.4.x86_64     14/20 
  验证    : mod_http2-2.0.26-4.el9_6.1.x86_64   15/20 
  验证    : php-mbstring-8.0.30-3.el9_6.x86_6   16/20 
  验证    : apr-util-openssl-1.6.1-23.el9.x86   17/20 
  验证    : apr-1.7.0-12.el9_3.x86_64           18/20 
  验证    : php-gd-8.0.30-3.el9_6.x86_64        19/20 
  验证    : php-mysqlnd-8.0.30-3.el9_6.x86_64   20/20 

已安装:
  apr-1.7.0-12.el9_3.x86_64                           
  apr-util-1.6.1-23.el9.x86_64                        
  apr-util-bdb-1.6.1-23.el9.x86_64                    
  apr-util-openssl-1.6.1-23.el9.x86_64                
  httpd-2.4.62-4.el9_6.4.x86_64                       
  httpd-core-2.4.62-4.el9_6.4.x86_64                  
  httpd-filesystem-2.4.62-4.el9_6.4.noarch            
  httpd-tools-2.4.62-4.el9_6.4.x86_64                 
  mod_http2-2.0.26-4.el9_6.1.x86_64                   
  mod_lua-2.4.62-4.el9_6.4.x86_64                     
  php-8.0.30-3.el9_6.x86_64                           
  php-cli-8.0.30-3.el9_6.x86_64                       
  php-common-8.0.30-3.el9_6.x86_64                    
  php-fpm-8.0.30-3.el9_6.x86_64                       
  php-gd-8.0.30-3.el9_6.x86_64                        
  php-mbstring-8.0.30-3.el9_6.x86_64                  
  php-mysqlnd-8.0.30-3.el9_6.x86_64                   
  php-opcache-8.0.30-3.el9_6.x86_64                   
  php-pdo-8.0.30-3.el9_6.x86_64                       
  php-xml-8.0.30-3.el9_6.x86_64                       

完毕!
bash 复制代码
root@proxy1 conf.d]# systemctl status nginx.service
× nginx.service - nginx - high performance web server
     Loaded: loaded (/etc/systemd/system/nginx.servic>
    Drop-In: /usr/lib/systemd/system/nginx.service.d
             └─php-fpm.conf
     Active: failed (Result: exit-code) since Thu 202>
    Process: 155601 ExecStart=/usr/local/nginx/sbin/n>
        CPU: 10ms

11月 06 22:02:05 zabbix-server systemd[1]: Starting n>
11月 06 22:02:05 zabbix-server nginx[155601]: nginx: >
11月 06 22:02:05 zabbix-server nginx[155601]: nginx: >
11月 06 22:02:06 zabbix-server nginx[155601]: nginx: >
11月 06 22:02:06 zabbix-server nginx[155601]: nginx: >
11月 06 22:02:07 zabbix-server nginx[155601]: nginx: >
11月 06 22:02:07 zabbix-server nginx[155601]: nginx: >
11月 06 22:02:07 zabbix-server systemd[1]: nginx.serv>
11月 06 22:02:07 zabbix-server systemd[1]: nginx.serv>
11月 06 22:02:07 zabbix-server systemd[1]: Failed to >
lines 1-18/18 (END)
bash 复制代码
[root@proxy1 conf.d]# ss -tulpn | grep -E '80|443'
tcp   LISTEN 0      511          0.0.0.0:80         0.0.0.0:*    users:(("nginx",pid=95980,fd=6),("nginx",pid=95979,fd=6))
[root@proxy1 conf.d]# curl localhost
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>

<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>

<p><em>Thank you for using nginx.</em></p>
</body>
</html>

导入初始架构和数据,系统将提示您输入新创建的密码。

bash 复制代码
cd /usr/share/zabbix-sql-scripts/mysql/ zcat server.sql.gz | mysql -uzabbix -p zabbix

密码:zabbix

四、为Zabbix server配置数据库

bash 复制代码
vim /etc/zabbix/zabbix_server.conf 

五、启动对应服务 测试:浏览器 8080端口 IP+:8080 启动

六、更换字体

bash 复制代码
(Windows系统字体) 将字体拖进Rock9系统 字体位置 更改字体 更改命令 [root@localhost fonts]# ln -s /usr/share/zabbix/assets/fonts/STKAITI.TTF /usr/share/zabbix/assets/fonts/graphfont.ttf [root@localhost fonts]# ls -l

到网页刷新就完成了 注意只支持楷体 创建另一台虚拟机进行:

配置安装源

bash 复制代码
rpm -Uvh https://repo.zabbix.com/zabbix/7.0/rocky/9/x86_64/zabbix-release-7.0-5.el9.noarch.rpm 

修改配置文件 启动并查看监听 回到数据段

相关推荐
数据库生产实战2 小时前
Oracle 19C实测:重命名分区表后又重命名分区索引,分区索引会失效吗?DBA必看避坑指南!
数据库·oracle·dba
king_harry2 小时前
window server2008下Oracle 配置dblink查询 MySQL 数据
数据库·mysql·oracle·odbc·dblink
chde2Wang2 小时前
hbase启动报错-keeperErrorCode
大数据·数据库·hbase
清平乐的技术专栏2 小时前
HBase Shell常用命令
大数据·数据库·hbase
Zhen (Evan) Wang2 小时前
SQL Server Service Broker启用详解以及常见问题
数据库·sqlserver
马克学长2 小时前
SSM文创产品推荐系统设计与实现95ml5(程序+源码+数据库+调试部署+开发环境)带论文文档1万字以上,文末可获取,系统界面在最后面。
数据库·ssm 框架·高校学生管理数字化·ssm 框架应用·商品分类与信息管理
hzk的学习笔记3 小时前
Redisson 的 Watchdog 机制
数据库·redis·分布式·缓存
罗光记3 小时前
夜晚的梦
数据库·其他·百度·新浪微博·segmentfault
韩立学长3 小时前
基于Springboot的智慧管网灌溉系统i1agupa7(程序、源码、数据库、调试部署方案及开发环境)系统界面展示及获取方式置于文档末尾,可供参考。
数据库·spring boot·后端