在 Debian 上启动 pgAdmin 的方式,取决于你安装的是 pgAdmin 4(桌面 / Web 模式) 还是通过 APT 包 安装的。下面按常见情况说明:
sudo systemctl start apache2
sudo systemctl enable apache2
浏览器打开:
http://localhost/pgadmin4
如果是第一次使用:
pgadmin4
或
pgadmin4-desktop
如果命令不存在,可以尝试:
which pgadmin4
如果你是用 pip 安装的:
source pgadmin4/bin/activate
pgadmin4
访问:
http://127.0.0.1:5050
dpkg -l | grep pgadmin
或
apt list --installed | grep pgadmin
sudo systemctl status apache2
sudo journalctl -xe
修改:
/etc/pgadmin4/config_local.py
或
/usr/share/pgadmin4/web/config.py
如果你能告诉我:
我可以给你更精确的启动步骤。