以下是 pgAdmin 在 CentOS 上的使用教程:
sudo yum install -y gcc make readline-devel zlib-devel
。sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
。sudo yum install -y pgadmin4
。sudo /usr/pgadmin4/bin/pgadmin4-web-setup.sh
,按提示設置管理員賬戶等信息。sudo systemctl start pgadmin4
,并設置開機自啟 sudo systemctl enable pgadmin4
。sudo firewall-cmd --permanent --add-service=http
,sudo firewall-cmd --reload
。http://your_server_ip:端口
(默認 80 或 5050 等),用初始化設置的賬戶登錄。登錄后在左側導航欄點擊“Servers”,右鍵選“Create”-“Server…”,輸入服務器信息保存后雙擊連接。