云服务器免费试用

如何在RHEL 9服务器中安装PostgreSQL 15和 pgAdmin

服务器知识 0 90
在RHEL 9中安装PostgreSQL 15和pgAdmin,首先启用EPEL仓库,然后使用yum命令安装postgresql15和pgadmin4。完成后,启动服务并设置开机启动。

在RHEL 9服务器中安装PostgreSQL 15和pgAdmin,可以按照以下步骤进行:

1. 安装PostgreSQL 15

如何在RHEL 9服务器中安装PostgreSQL 15和 pgAdmin

1.1 添加PostgreSQL官方仓库

sudo dnf install y https://download.postgresql.org/pub/repos/yum/reporpms/EL9x86_64/pgdgredhat902.noarch.rpm

1.2 安装PostgreSQL 15

sudo dnf install y postgresql15 postgresql15server

1.3 启动并设置开机自启PostgreSQL服务

sudo systemctl enable now postgresql15

2. 安装pgAdmin

2.1 添加pgAdmin官方仓库

sudo dnf install y https://download.postgresql.org/pub/repos/yum/10/redhat/rhel9x86_64/pgdgredhat102.noarch.rpm

2.2 安装pgAdmin

sudo dnf install y pgadmin4

2.3 启动并设置开机自启pgAdmin服务

sudo systemctl enable now pgadmin4

至此,您已经在RHEL 9服务器上成功安装了PostgreSQL 15和pgAdmin,接下来,您可以使用浏览器访问pgAdmin Web界面(默认地址为http://服务器IP地址:5050),并使用默认的用户名和密码(均为"admin")登录,在首次登录后,系统会提示您修改默认密码。

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942@qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: 如何在RHEL 9服务器中安装PostgreSQL 15和 pgAdmin
本文地址: https://solustack.com/107365.html

相关推荐:

网友留言:

我要评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。