![]() |
|
EDB PostgreSQL Advanced Server v15 Setup on Azure RHEL 9.4 with pgAdmin - Printable Version +- DevOps Discussion Forum (https://forums.geekssolutions.io) +-- Forum: Cloud Computing (https://forums.geekssolutions.io/forumdisplay.php?fid=10) +--- Forum: DevOps (https://forums.geekssolutions.io/forumdisplay.php?fid=14) +--- Thread: EDB PostgreSQL Advanced Server v15 Setup on Azure RHEL 9.4 with pgAdmin (/showthread.php?tid=13) |
EDB PostgreSQL Advanced Server v15 Setup on Azure RHEL 9.4 with pgAdmin - santosh - 04-07-2026 EDB PostgreSQL Advanced Server v15 Setup on Azure RHEL 9.4 with pgAdmin Overview This guide covers installing and configuring EDB PostgreSQL Advanced Server v15 on Azure RHEL 9.4, setting up systemd service, configuring remote connections and connecting via pgAdmin. Environment
Table of Contents
Step 1 - Install EDB PostgreSQL Advanced Server Run on: Azure RHEL 9.4 Server Add the EDB repository: Code: curl -1sLf 'https://downloads.enterprisedb.com/YOUR_REPO_TOKEN/enterprise/setup.rpm.sh' | sudo -E bashInstall EDB PostgreSQL Advanced Server v15: Code: sudo dnf install edb-as15-serverVerify installation: Code: /usr/edb/as15/bin/postgres --versionStep 2 - Initialize the Database Run on: Azure RHEL 9.4 Server Create the data directory: Code: sudo mkdir -p /usr/edb/as15/dataSwitch to enterprisedb user and initialize: Code: sudo su - enterprisedbStep 3 - Create Systemd Service Run on: Azure RHEL 9.4 Server Create the service file: Code: sudo nano /etc/systemd/system/edb-as15.serviceAdd the following configuration: Code: [Unit]Reload systemd and start service: Code: sudo systemctl daemon-reloadVerify service status: Code: sudo systemctl status edb-as15Expected output: Code: edb-as15.service - EDB PostgreSQL Advanced Server 15Step 4 - Configure Remote Connections Run on: Azure RHEL 9.4 Server Edit postgresql.conf: Code: sudo nano /usr/edb/as15/data/postgresql.confSet the following values: Code: listen_addresses = '*'Edit pg_hba.conf to allow remote access: Code: sudo nano /usr/edb/as15/data/pg_hba.confAdd your bastion or client IP: Code: # Allow specific IP accessReload PostgreSQL to apply changes: Code: sudo systemctl reload edb-as15Step 5 - Setup Firewall Rules Run on: Azure RHEL 9.4 Server Open port 5444 in firewalld: Code: sudo firewall-cmd --permanent --add-port=5444/tcpVerify port is open: Code: sudo firewall-cmd --list-allVerify PostgreSQL is listening: Code: netstat -tuln | grep 5444Expected output: Code: tcp 0 0 0.0.0.0:5444 0.0.0.0:* LISTENStep 6 - Install PostgreSQL Client Run on: Bastion Server Install psql client: Code: sudo dnf install postgresqlVerify client installation: Code: psql --versionStep 7 - Configure pgAdmin Run on: Web Browser 7.1 Access pgAdmin
7.2 Add New Server
7.3 General Tab Settings
7.4 Connection Tab Settings
7.5 Save and Connect
Step 8 - Test Connectivity Run on: Bastion Server Test connection using psql: Code: psql -h YOUR_EDB_SERVER_IP -p 5444 -U enterprisedb -d edbIf successful you will see the psql prompt: Code: edb=#Test basic query: Code: SELECT version();Troubleshooting
Check service logs: Code: sudo journalctl -u edb-as15 -fAdditional Resources
Summary
|