How to install Pgadmin on CentOS
1 min readOct 7, 2020
This is the base one that i used CentOS 8 + pgadmin 4
https://yallalabs.com/databases/how-to-install-pgadmin4-centos8/
Create CentOS 8 EC2 in private subnet
And go in there via Jumphost
sudo rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-redhat-repo-1-1.noarch.rpm
(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/setup-web.sh
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