RDBMS/CUBRID & PostgreSQL PostgreSQL 15 버전 설치 (소스 코드) - 728x90 반응형 DB-Engines Ranking Popularity ranking of database management systems. db-engines.com 데이터베이스 랭킹에서 상위 레벨에 속하는 PostgreSQL 데이터베이스를 설치 해보겠습니다. 설치 파일 다운로드 PostgreSQL: File Browser www.postgresql.org 소스 코드 방식으로 설치를 진행 합니다. 소스 코드 방식은 rpm, yum과 같은 방식 보다 자유도가 높습니다. GitHub - postgres/postgres: Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work Mirror of the official PostgreSQL GIT repository. Note that this is just a *mirror* - we don't work with pull requests on github. To contribute, please see https://wiki.postgresql.org/wiki/Subm... github.com PostgreSQL 깃허브에서 최신 업데이트 내용을 확인할 수 있습니다. 설치 전 라이브러리 확인 rpm -qlia make gcc gzip readline-devel zip unzip zlib-devel PostgreSQL을 설치하기 전 필수 라이브러리를 꼭 확인 해야 합니다. yum install -y make gcc gzip readline-devel zip unzip zlib-devel lz4-devel lz4 PostgreSQL 필수 패키지를 yum을 통해 설치 합니다. PostgreSQL 별도 기능에서는 추가 패키지를 설치해야 동작 합니다. Linux package / utility / libarary 파일 다운로드 리눅스 환경에서 yum 또는 apt-get과 같은 패키지 관리자로 패키지를 다운 받지 못할 때 파일로 준비해야 합니다. package, utility, librarary Repository CentOS Index of /centos mirror.navercorp.com CentOS 버전에 맞게 junsuyoun.tistory.com yum을 사용하지 못하는 환경이라면 위의 링크에서 패키지 의존성을 확인해서 다운로드 받아 준비해야합니다. 설치 groupadd dba useradd -d /postgres -g dba postgres mkdir /pgdata chown -R postgres:dba /pgdata chown -R postgres:dba /postgres yum install -y make gcc gzip readline-devel zip unzip zlib-devel lz4-devel lz4 su - postgres -- 소스 파일 준비 cd postgresql-15.3 ./configure --with-lz4 \ --prefix=/postgres \ --exec-prefix=/postgres \ --datadir=/pgdata make install CentOS 7.9.2009에서 설치를 진행 합니다. root가 아닌 postgres 유저로 설치하기를 권장 합니다. ./configure --help를 통해 ./configure 옵션을 통해 여러가지 기능들을 활성화 할 수 있습니다. 실행 initdb -D /postgres/pgengine -U postgres pg_ctl -D /postgres/pgengine -l logfile start 접속 psql -U postgres psql (15.3) Type "help" for help. postgres=# \l List of databases Name | Owner | Encoding | Collate | Ctype | ICU Locale | Locale Provider | Access privileges -----------+----------+-----------+---------+-------+------------+-----------------+----------------------- postgres | postgres | SQL_ASCII | C | C | | libc | template0 | postgres | SQL_ASCII | C | C | | libc | =c/postgres + | | | | | | | postgres=CTc/postgres template1 | postgres | SQL_ASCII | C | C | | libc | =c/postgres + | | | | | | | postgres=CTc/postgres (3 rows) 728x90 반응형 공유하기 게시글 관리 Tracker 저작자표시 비영리 변경금지 'RDBMS > CUBRID & PostgreSQL' 카테고리의 다른 글 CUBRID 오브젝트 확인하는 SQL (0) 2023.07.20 PostgreSQL 15 PL/Python 사용해보기 (0) 2023.07.20 CUBRID 문자셋(characterset) 확인하기 (0) 2022.12.03 CUBRID 테이블 스페이스(볼륨) 사용량 확인하기 (0) 2022.11.12 CUBRID 파라미터 확인 (0) 2022.11.05 당신이 좋아할만한 콘텐츠 CUBRID 오브젝트 확인하는 SQL 2023.07.20 PostgreSQL 15 PL/Python 사용해보기 2023.07.20 CUBRID 문자셋(characterset) 확인하기 2022.12.03 CUBRID 테이블 스페이스(볼륨) 사용량 확인하기 2022.11.12 댓글 0 + 이전 댓글 더보기