Install PostgreSQL

dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
dnf -qy module disable postgresql
dnf install -y postgresql12-server
/usr/pgsql-12/bin/postgresql-12-setup initdb
systemctl enable postgresql-12
systemctl start postgresql-12
本文详细介绍了如何在Linux系统中通过DNF包管理器下载并安装PostgreSQL12服务器,包括添加PGDG仓库,禁用默认的postgresql模块,初始化数据库以及启动服务的过程。

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



