安装postgresql-11
sudo apt-get install postgresql-11
查看postgresql运行状态:systemctl status postgresql
安装pgadmin4
1, sudo apt install python3-pip
2,下载pgadmin4的python 包
https://www.postgresql.org/ftp/pgadmin/pgadmin4/v4.6/pip/
pgadmin4-4.6-py2.py3-none-any.whl
3,安装
pip3 install pgadmin4-4.6-py2.py3-none-any.whl
4,查找pgadmin4安装位置
sudo find / -name pgAdmin4.py
如:/home/zhenyi/.local/lib/python3.7/site-packages/pgadmin4/pgAdmin4.py
5,启动pgadmin4