본문 바로가기

인프라/AWS4

EC2 한국시간으로 타임존(timeZone) 설정하기 처음 EC2 인스턴스를 할당받으면 다음과 같이 할당되어있다 이를 바꾸기 위한 방법을 기록한다. ubuntu@ip-172-xx-xxx-xxx:~$ date Mon Jan 8 09:29:51 UTC 2024 sudo ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime sudo timedatectl set-timezone 'Asia/Seoul' tzselect 4 > 23 > 1 Please identify a location so that time zone rules can be set correctly. Please select a continent, ocean, "coord", or "TZ". 1) Africa 7) Europe 2) Americas 8) Ind.. 2024. 1. 8.
[AWS/Kafka] Docker 설치 후 Kafka 설정 https://jung-mmmmin.tistory.com/124 [Docker] Docker 부터 docker compose 설치 실행환경 cat /etc/*-release | uniq DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 Docker 설치 sudo apt-get update 필요한 패키지 설치 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common Docker의 공 jung-mmmmin.tistory.com https://jung-mmmmin.tistory.com/113 [Docker/Kafka] zookeeper/Kafka 설치 로컬에서 설치해.. 2023. 12. 19.
[AWS RDS] PostgreSQL 사용하기 DB생성 및 DB 조회 postgres=# create database [DB이름]; # 데이터베이스 목록 조회 postgres=# \l 2023. 12. 6.
[AWS RDS] EC2와 RDS 연동 / EC2에서 RDS(PostgreSQL) 설치 및 접근하기 1. EC2와 RDS 연동하기 연동할 EC2 정보 파악 EC2 -> 보안탭 보안그룹 : sg-************ (Yeti-Project) 서브넷 ID: subnet-**** VPC ID: vpc-0d**** 3가지 정보를 기억해두자 2. DB 보안 그룹 생성 EC2 > 보안그룹 > [보안 그룹 생성] 이름 및 VPC 설정 보안 그룹 이름, 설명 : RDS-EC2-Connection-SecurityGroup로 설정하겠다. 위에서 기억해두었던 VPC ID를 선택해준다. 인바운드 규칙 추가 유형 Postgresql / 소스: 아까 기억해두었던 보안그룹 sg-**** 선택 3. DB수정 RDS > 데이터베이스 > 데이터베이스 선택 DB 선택 > 수정 보안그룹 RDS-EC2-Connection-Securit.. 2023. 12. 6.