更换软件源

sed -e 's|^mirrorlist=|# mirrorlist=|g' \
    -e 's|^# baseurl=https://repo.almalinux.org/almalinux|baseurl=https://mirrors.nju.edu.cn/almalinux|g' \
	-i.bak \
	/etc/yum.repos.d/almalinux-appstream.repo \
    /etc/yum.repos.d/almalinux-baseos.repo \
    /etc/yum.repos.d/almalinux-crb.repo \
    /etc/yum.repos.d/almalinux-extras.repo \
    /etc/yum.repos.d/almalinux-highavailability.repo \
    /etc/yum.repos.d/almalinux-nfv.repo \
    /etc/yum.repos.d/almalinux-plus.repo \
    /etc/yum.repos.d/almalinux-resilientstorage.repo \
    /etc/yum.repos.d/almalinux-rt.repo \
    /etc/yum.repos.d/almalinux-sap.repo \
    /etc/yum.repos.d/almalinux-saphana.repo

安装docker

dnf config-manager --add-repo https://mirrors.nju.edu.cn/docker-ce/linux/centos/docker-ce.repo
sed -i 's+https://download.docker.com+https://mirror.nju.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo
dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://xxxx.mirror.aliyuncs.com"]
}
EOF
systemctl daemon-reload
systemctl restart docker

安装nodejs

curl -fsSL https://rpm.nodesource.com/setup_18.x | bash -
dnf install -y nodejs

安装java环境

dnf install maven-openjdk11 java-11-openjdk