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 | 31 |
Tags
- UE Vehicle
- Animal IK
- UE Interface
- web
- Unreal Engien
- Zombie
- ubuntu
- Hash Table
- Portfoilo
- STL
- 포트폴리오
- redis
- UE4
- unreal engine
- database
- houdini
- portfolio
- 4-legged Animal
- 텍스쳐 스트리밍 풀
- Projetile
- standard template library
- AI Perception
- 개발일지
- standart template library
- inventory
- Weapon Animation
- 메이플스토리
- oracle cloud
- Texture Streaming Pool
- red black tree
Archives
- Today
- Total
블로그
[Web] Oracle Cloud를 활용한 Web Server 환경 구축 (6) - PostgreSQL 본문
이번 시간엔 DB 서버에 RDBMS인 PostgreSQL 환경을 구축하자.
여러 고민을 해본 끝에 많이 쓰이는 RDBMS 중 하나인 PostgreSQL을 사용하려고 한다. Redis를 사용하기엔 무료 클라우드의 메모리 제공량이 적기도 하고, RDBMS 사용이 기본이라고 생각했기 때문이다.
우선 설치 가능한 postgresql를 확인할 수 있다.
sudo apt show postgresql
위 과정은 생략해도 되고, 바로 설치가 가능하다.
sudo apt-get install postgresql postgresql-contrib
다운로드 받은 postgresql의 상태를 체크할 수 있다.
sudo service postgresql start
sudo service postgresql status
sudo service postgresql stop
DB에 접속은 다음과 같다.(start를 통해 시작한 뒤에 접속하자)
sudo -i -u postgres
이후 psql을 입력하여 데이터베이스를 켜준다.
환경 구축은 완료했다. PostgreSQL 사용 방법은 이 사이트를 참고해서 사용할 예정이다.
https://rianshin.tistory.com/68#google_vignette
[PostgreSQL] 기본 명령어
- DB 접속 # psql -U [DB사용자계정] [데이터베이스명] - Postgre SQL shell 진입시 # psql [스키마명] - DB 데이터베이스 출력 # \l or \list - DB 데이터베이스 선택 # \c [데이터베이스 명] - DB 데이터베이스 생성 #
rianshin.tistory.com
참고 레퍼런스
'프로그래밍 > Web' 카테고리의 다른 글
[Web] Oracle Cloud를 활용한 Web Server 환경 구축 (5) - Java (0) | 2024.05.05 |
---|---|
[Web] Oracle Cloud를 활용한 Web Server 환경 구축 (4) - Redis in python (0) | 2024.05.01 |
[Web] Oracle Cloud를 활용한 Web Server 환경 구축 (3) - DB Server (0) | 2024.04.29 |
[Web] Oracle Cloud를 활용한 Web Server 환경 구축 (2) - Nginx web server (2) | 2024.04.28 |
[Web] Oracle Cloud를 활용한 Web Server 환경 구축 (1) - Cloud 접속 (2) | 2024.04.27 |