880 B
880 B
Installing on Debian/Ubuntu
# Install the public key for the repository (if not done previously): curl -fsS https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o /usr/share/keyrings/packages-pgadmin-org.gpg# Create the repository configuration file: sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list && apt update'# Install for web mode only sudo apt install pgadmin4-webw# Configure the web server sudo /usr/pgadmin4/bin/setup-web.sh
The setup script will:
- Create a pgAdmin configuration database
- Create an initial administrator account
- Configure Nginx with the necessary settings