挺好的教程
curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add - sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/focal pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list'
sudo apt update sudo apt install pgadmin4
sudo /usr/pgadmin4/bin/setup-web.sh
别忘了还有些远程链接的,权限编辑的设置
vi pg_hba.conf vi postgresql.conf systemctl restart postgresql
https://tecadmin.net/how-to-install-pgadmin4-on-ubuntu-20-04/