Skip to content

Instantly share code, notes, and snippets.

@BEMELON
Last active July 28, 2018 00:27
Show Gist options
  • Save BEMELON/75b0575be8aab46a0c338c98b1812d1e to your computer and use it in GitHub Desktop.
Save BEMELON/75b0575be8aab46a0c338c98b1812d1e to your computer and use it in GitHub Desktop.
AMZON EC2 사용해서 fabric 세팅하기

AWS EC2 생성 하기

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-updates.html

  1. chmod 400 MyKeyPair2.pem

EC2 SSH 연결하고 설치한 패키지들

  1. sudo yum update
  2. sudo yum install docker
  3. sudo yum install git

Install docker-compoose

https://docs.docker.com/compose/install/#install-compose

docker 루트권한 주기

sudo usermod -a -G docker $USER
sudo service docker restart

Npm, nodejs 설치

https://nodejs.org/ko/download/package-manager/#enterprise-linux-fedora

golang 설치

sudo yum install golang
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin

gcc, g++ 설치

sudo yum install gcc gcc-c++

두 인스턴스 간 통신하기

https://gist.github.com/BretFisher/7233b7ecf14bc49eb47715bbeb2a2769

용량 확장하기

  1. AWS EC2 탭에 Elastic Volume 수정
  2. lsblk 명령어 사용하면 2개의 파티션을 확인할 수 있음
  3. 확장되어지지 않은 파티션을 /dev/xvda1 이라 가정
  4. sudo growpart /dev/xvda 1
  5. sudo xfs_growfs /dev/xvda1
    하면 df- h 명령어를 통해 용량증가를 확인할 수 있다
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment