본문 바로가기

인프라15

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.
맥북 영구 alias 등록하기 맥북은 bash쉘이 아닌 zsh쉘을 기본으로 사용한다. 그렇기 때문에 ~/.bashrc 가 아닌 ~/.zshrc 파일을 열어 수정을 해줘야 한다. zshrc 파일로 영구 등록 1. vi ~/.zshrc 2. 원하는 alias를 등록해준다. alias [별명]=[linux 명령어] alias aws='cd Desktop/aws' alias testjm='ssh -i "XXXXX.pem" ubuntu@XXXXXXXX' 3. esc -> :wq 로 저장한다. 4. 터미널을 끄고 다시 시작한다. 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.
[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의 공식 GPG키를 추가 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - Docker의 공식 apt 저장소를 추가 sudo add-apt-repository "deb [arch=amd64] https://download.docker.. 2023. 12. 16.