본문 바로가기
BACKEND/PostgreSQL

Linux(Ubuntu) pgAdmin4 설치

by 드로니뚜벅이 2023. 3. 11.

Ubuntu 기본 저장소(Repository)에는 pgAdmin4가 없습니다. 따라서, 저장소에 대한 공개 키를 등록하고 저장소 구성 파일을 생성합니다. 관련글은 pgAdmin 4 (APT)를 참고하세요.

// 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 both desktop and web modes:
$ sudo apt install pgadmin4

// Install for desktop mode only:
$ sudo apt install pgadmin4-desktop

// Install for web mode only: 
$ sudo apt install pgadmin4-web 

// Configure the webserver, if you installed pgadmin4-web:
$ sudo /usr/pgadmin4/bin/setup-web.sh

pgAdmin4를 설치합니다.

// Install for both desktop and web modes:
sudo apt install pgadmin4

 

데스크탑(PC 응용프로그램)과 웹(브라우저)용을 선택적으로 설치할 수도 있습니다.

// Install for desktop mode only:
$ sudo apt install pgadmin4-desktop

// Install for web mode only: 
$ sudo apt install pgadmin4-web 

// Configure the webserver, if you installed pgadmin4-web:
$ sudo /usr/pgadmin4/bin/setup-web.sh

'BACKEND > PostgreSQL' 카테고리의 다른 글

쿼리 로그(Query logs) 파일에 저장하기  (1) 2023.05.28
Ubuntu PostgreSQL 백업(backup) 및 복구(restore)  (0) 2023.03.12
pgRouting 설치  (0) 2023.01.31
PostGIS 설치  (0) 2023.01.31
PostgreSQL 설치  (0) 2022.07.14