2024-5-31 myluzh
Linux
0x01 概述
环境准备:
CentOS7_A:YUM-SERVER,用来部署本地yum仓库。
ip:172.16.10.78
CentOS7_A:用来测试搭建YUM仓库是否生效。
ip:172.16.10.79
0x02 YUM-SERVER部署web服务
在yum-server机子上搭建一个web服务,开启目录索引
# 写入nginx repo
cat <<EOF > nginx.repo
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/\$releasever/\$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
[nginx-mainline]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/centos/\$r...
阅读全文>>
标签: centos yum rpm repo centos7 reposync createrepo
评论(0)
(283)