文章目录
软件安装
1.安装http
yum -y install httpd http-devel
2.安装createrepo
yum -y install createrepo
启动http
service httpd start
chkconfig httpd on
部署自建yum源
1.创建repodata目录
cd /var/www/html/
mkdir -p postgresql10/x86_64
mkdir -p postgresql12/x86_64
createrepo -p -d -o postgresql10/x86_64 postgresql10/x86_64
createrepo -p -d -o postgresql12/x86_64 postgresql12/x86_64
2.获取postgresql rpm包
打开网址,查看源代码方式,获取所有rpm包的下载连接,然后用wget命令下载。
# pg10.html 存放的是https://download.postgresql.org/