postgresql-2-在centos7系统中离线安装
程序员文章站
2022-03-06 08:25:35
1 官网获取最新postgresql的rpm源下载路径(1)网址https://www.postgresql.org/download/linux/redhat/(2)安装RPM源yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm2 下载rpm包#yum install --downloadonly --downl...
1 官网获取最新postgresql的rpm源下载路径
(1)网址
https://www.postgresql.org/download/linux/redhat/
(2)安装RPM源
yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
2 下载rpm包
#yum install --downloadonly --downloaddir=/root -y postgresql12-server
下载路径可以自定义设置
3 上传rpm包到需要安装postgres的未联网服务器中
4 离线安装
#yum localinstall -y ./*.rpm
其余步骤同在线安装
本文地址:https://blog.csdn.net/qq_20466211/article/details/108578018