安装基础repo包
sudo rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-redhat-repo-2-1.noarch.rpm
Install for web mode only. 只安装web版
sudo yum install pgadmin4-web
注:安装过程有点长,需要输入y确认。
sudo /usr/pgadmin4/bin/setup-web.sh
Enter the email address and password to use for the initial pgAdmin user account:
Email address: 2063506328@qq.com
Password:
Retype password:
pgAdmin 4 - Application Initialisation
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
Apache successfully enabled.
Apache successfully started.
You can now start using pgAdmin 4 in web mode at http://127.0.0.1/pgadmin4
输入地址:http://IP/pgadmin4/,利用上面设置的邮箱以及密码登录即可