postgresql镜像
简介
PostgreSQL is available for download as ready-to-use packages or installers for various platforms, PostgreSQL可以作为各种平台的现成软件包或安装程序下载。
下载地址:https://mirrors.aliyun.com/postgresql/
配置方法
选择依赖管理工具:yum
配置镜像源(仅以EL-7-x86_64作为配置参考, 其余版本请自行替换):
rpm -Uvh https://mirrors.aliyun.com/postgresql/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sed -i "s@https://download.postgresql.org/pub@https://mirrors.aliyun.com/postgresql@g" /etc/yum.repos.d/pgdg-redhat-all.repo
安装需要的 PostgreSQL 版本(仅供参考, 具体可获取版本请自行在仓库里确认):
yum install -y postgresql #(最新版本)
yum install -y postgresql96-server #(PostgreSQL 9.6)
yum install -y postgresql13-server #(PostgreSQL 13)
注:配置方法参考自华为镜像
相关链接
官方主页:https://www.postgresql.org/