一、准备两台或两台以上Linux主机(更改服务器主机名为server.example.com;另一台主机名为node1.example.com)
服务器:hostnamectl set-hostname server.example.com
bash
二、保证网络通畅
三、挂载yum源
mount /dev/sr0 /mnt
vim /etc/yum.repos.d/base.repo
[BaseOS]
Name=RHEL8.5-BaseOS-Package
baseurl=file:///mnt/BaseOS
gpgcheck=0
enable=1
[AppStream]
name=RHEL8.5-AppStream-package
baseurl=file:///mnt/AppStream
gpgcheck=0
enable=1
四、在阿里云网站上下载epel包
yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
五、将下面两个源写入epel
sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|' /et