






sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
systemctl stop httpd
systemctl stop mariadb
systemctl stop zabbix-server
systemctl stop php-fpm
dnf module switch-to php:8.2


rpm -qa | grep MariaDB

dnf remove mariadb-server mariadb-client Mariadb-common Mariadb-shared

vi /etc/yum.repos.d/MariaDB.repo
# MariaDB 11.4 CentOS repository list - created 2026-06-25 01:33 UTC
# https://mariadb.org/download/
[mariadb]
name = MariaDB
# rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details.
# baseurl = https://rpm.mariadb.org/11.4/centos/$releasever/$basearch
baseurl = https://mirrors.aliyun.com/mariadb/yum/11.4/centos/$releasever/$basearch
# gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB
gpgkey = https://mirrors.aliyun.com/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck = 1
sudo dnf install MariaDB-server MariaDB-client

dnf module disable mariadb
dnf module disable mysql



rpm -Uvh https://repo.zabbix.com/zabbix/8.0/release/centos/8/noarch/zabbix-release-latest-8.0.el8.noarch.rpm
dnf clean all

dnf update zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent

systemctl start httpd
systemctl start mariadb
systemctl start zabbix-server
systemctl start php-fpm
cat /var/log/zabbix/zabbix_server.log



cp /etc/httpd/conf.d/zabbix.conf /etc/httpd/conf.d/zabbix.conf.bak
sed -i 's:/usr/share/zabbix:/usr/share/zabbix/ui:g' /etc/httpd/conf.d/zabbix.conf
systemctl restart httpd

vi /etc/httpd/conf.d/zabbix.conf


systemctl restart httpd



systemctl enable httpd php-fpm mariadb zebbix-server

© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END








