在Debian上集成pgAdmin到其他服务,通常是将pgAdmin与PostgreSQL数据库服务集成,以下是具体步骤:
sudo apt update
和sudo apt install postgresql postgresql-contrib
安装。/etc/postgresql/<版本>/main/postgresql.conf
,将listen_addresses
设为'*'
,并设置端口等参数;编辑/etc/postgresql/<版本>/main/pg_hba.conf
,添加host all all 0.0.0.0/0 md5
以允许远程连接,然后重启服务。sudo apt install pgadmin4
命令安装。