虚拟机环境
CD镜像:CentOS-Stream-8-x86_64-20221125-dvd1.iso
关闭防火墙
]# systemctl stop firewalld
]# systemctl disable firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
关闭seleinux
]# setenforce 0
]# sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/g’ /etc/selinux/config
更换yum源
]# wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
]# sed -i -e ‘/mirrors.cloud.aliyuncs.com/d’ -e ‘/mirrors.aliyuncs.com/d’ /etc/yum.repos.d/CentOS-Base.repo
]# dnf clean all
]# yum makecache
Warning: failed loading ‘/etc/yum.repos.d/CentOS-AppStream.repo’, skipping.
Repository extras is listed more than once in the configuration
Repository PowerTools is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
CentOS-8.5.2111 - Base - mirrors.aliyun.com 688 kB/s | 4.6 MB 00:06
CentOS-8.5.2111 - Extras - mirrors.aliyun.com 42 kB/s | 10 kB 00:00
CentOS-8.5.2111 - AppStream - mirrors.aliyun.com 439 kB/s | 8.4 MB 00:19
Zabbix Official Repository (Agent2 Plugins) - x86_64 1.1 kB/s | 1.7 kB 00:01
Zabbix Official Repository - x86_64 69 kB/s | 199 kB 00:02
Zabbix Official Repository (non-supported) - x86_64 755 B/s | 1.2 kB 00:01
Metadata cache created.
]# sed -i ‘s/mirrorlist/#mirrorlist/g’ /etc/yum.repos.d/CentOS-
]#sed -i* ‘s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g’ /etc/yum.repos.d/CentOS-*
]# yum makecache
安装mysql-server
]# dnf install mysql-server
Warning: failed loading ‘/etc/yum.repos.d/CentOS-AppStream.repo’, skipping.
Repository extras is listed more than once in the configuration
Repository PowerTools is listed more than once in the configura