To use the yum repository, follow these steps:
-
Select version:
- Select platform:
- Select architecture:
-
Install the repository RPM:
yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-1.noarch.rpm -
Install the client packages:
yum install postgresql10 -
Optionally install the server packages:
yum install postgresql10-server -
Optionally initialize the database and enable automatic start:
/usr/pgsql-10/bin/postgresql-10-setup initdb
systemctl enable postgresql-10
systemctl start postgresql-10

本文介绍了如何通过 yum 仓库安装 PostgreSQL 数据库。包括选择版本、平台和架构,安装仓库 RPM 和客户端及服务器包,以及初始化数据库并设置自动启动。
3万+

被折叠的 条评论
为什么被折叠?



