Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- C
- GPU
- 파이썬
- 서울시민카드
- Elasticsearch
- Kubernetes
- Python
- RHEL
- Audit Log
- zabbix
- log
- 크롬
- 디렉토리
- Chrome
- 빅데이터
- JSON
- yum
- Shell
- centos 7.5
- PostgreSQL
- audit
- docker
- Linux
- bash
- Elk
- CentOS
- GNOME
- rsyslog
- K8S
- syslog
Archives
- Today
- Total
Sysops Notepad
[Linux] PostgreSQL 13 설치 본문
728x90
설치환경 :
- Centos 7
설치방법
[root@sysops]# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
[root@sysops]# yum install -y postgresql13-server
[root@sysops]# /usr/pgsql-13/bin/postgresql-13-setup initdb
[root@sysops]# systemctl enable postgresql-13
사용방법
[root@sysops]# sudo -iu postgres psql
# CREATE DATABASE test;
# \c test
# CREATE TABLE messages (handle VARCHAR(32), message VARCHAR(280));
# INSERT INTO messages VALUES ('User', 'This is a test message.');
# INSERT INTO messages VALUES ('User', 'This is another test message.');
# SELECT * FROM messages;
참고 : https://www.vultr.com/docs/install-postgresql-on-centos-7
728x90
'업무 > etc' 카테고리의 다른 글
[Linux] Centos python 3.9.x 버전 설치 (0) | 2021.11.15 |
---|---|
[Linux] Streamlit 설치 (0) | 2021.11.15 |
[Linux] 서버 호스트명(hostname) 확인 및 변경 (0) | 2021.11.15 |
nginx response 못 받고 끊어질때 조치 방법 (0) | 2021.11.09 |
[Linux] bash if 파일 체크 관련 옵션 (0) | 2021.09.29 |
Comments