사용자 도구

사이트 도구


postgresql:install

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
postgresql:install [2023/05/12 13:14] – [Debian에 설치] taekgupostgresql:install [2025/04/15 10:05] (현재) – 바깥 편집 127.0.0.1
줄 1: 줄 1:
 +====== PostgreSQL 설치 ======
  
 +여기서 자세한 설명을 본다.
 +https://www.postgresql.org/download/
 +
 +아래에 있는 것은 쓰레기 위의 것을 참조하세요.
 +===== Linux Ubuntu =====
 +==== 필수 패키지 설치 ====
 +
 +데이터베이스 소프트웨어 설치를 지원하려면 다음 패키지를 설치해야 합니다.
 +<code bash>
 +sudo apt install software-properties-common apt-transport-https wget -y
 +</code>
 +
 +==== postgresql 16 설치 ====
 +<code bash>
 +sudo apt install postgresql-16
 +</code>
 +
 +==== Debian에 설치 (XX삭제XX) ====
 +
 +<code bash>
 +sudo apt install curl ca-certificates gnupg
 +</code>
 +
 +<code bash>
 +curl https://www.postgresql.org/media/keys/ACCC4CF8.asc \
 +| gpg --dearmor \
 +| sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null
 +</code>
 +
 +<code bash>
 +==> ubuntu 와 debian의 source.list추가
 +sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
 +</code>
 +
 +==== Debian12에서 설치 ====
 +<code bash>
 +sudo apt install -y postgresql-common
 +sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
 +</code>