How to install Pgadmin on CentOS

June Chung
1 min readOct 7, 2020


This is the base one that i used CentOS 8 + pgadmin 4

Create CentOS 8 EC2 in private subnet
And go in there via Jumphost

sudo rpm -i

(This is installed via python3.6 ++, don’t mix the version of python)

sudo dnf install pgadmin4-web -y

policy core util to download & start the script

dnf install policycoreutils-python-utils -ysudo /usr/pgadmin4/bin/

To let httpd wgi module to connect to internet

setsebool -P httpd_can_network_connect 1

Check if it works!

netstat -ntlp

Access it via → http://localhost/pgadmin4 or http://{ipaddress}/pgadmin4

Need Python 3 as well