반응형
250x250
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 |
29 | 30 |
Tags
- 도커
- SQL
- COALESCE
- PostgreSQL
- codepipeline
- Python
- or some instances in your deployment group are experiencing problems.
- Spring Error
- node
- Airflow
- VPN
- kubeflow
- IntelliJ
- docker
- codedeploy error
- chart.js
- Flux
- redis
- JavaScript
- java bigdecimal
- bootstrap
- aws cicd
- codebuild
- chartjs
- codedeploy
- Kafka
- aws
- AWS CI/CD 구축하기
- Jenkins
- Spring
Archives
- Today
- Total
Small Asteroid Blog
centos7 postgresql 설치하기 본문
728x90
1. 필요한 파일 검색
https://www.postgresql.org/download/linux/redhat/
저장소 설치
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
2.
설치 가능 패키지 검색
sudo yum list postgres*
3.
[root@onypoc ~]# yum install postgresql11-libs.x86_64 postgresql11.x86_64 postgresql11-contrib.x86_64 postgresql11-server.x86_64
4.
db생성
sudo /usr/pgsql-11/bin/postgresql-11-setup initdb
5.
sudo systemctl restart postgresql-11.service
sudo systemctl enable postgresql-11.service
6.
netstat -tnlp
7.
접속 명령어
sudo -u postgres psql
8.
sudo -u postgres psql
접속 후
비밀번호 설정
\password postgres
db생성
sudo /usr/pgsql-11/bin/postgresql-11-setup initdb
sql 시작
부팅시 자동시작
host all all 0.0.0.0/0 password
728x90
반응형
'클라우드 및 인프라 > Linux' 카테고리의 다른 글
리눅스 재부팅 이유 -> 리눅스 메모리 오류 (0) | 2021.06.10 |
---|---|
리눅스 환경변수 설정 env (0) | 2021.05.18 |
[centos6] all mirror URLs are not using ftp, http[s] or file. - yum update (0) | 2021.05.12 |
리눅스에서 GPU 사용량 확인하기 nvidia-smi (0) | 2021.05.04 |
centos7 에서 방화벽 포트 오픈하기 (0) | 2021.05.04 |