think0831 / javaPractice

자바 공부용
0 stars 0 forks source link

aws (ubuntu)-apache, tomcat 설치 및 연동 #4

Open think0831 opened 5 years ago

think0831 commented 5 years ago

SSH로 인스턴스 접속

  1. 아이피 주소 입력 user@IP adress
  2. SSH 체크
  3. (옵션) 상태 저장

image

  1. Connection -> SSH -> Auth (1) 체크 (기본설정)
  2. ppk 키파일 등록 (확장자 pem인 키 파일을 puttygen.exe를 이용하여 ppk로 변환)
think0831 commented 4 years ago

https://www.mimul.com/blog/linux-server-operations/ : 리눅스 서버에 들어가면 언제나 하는 작업들

think0831 commented 4 years ago

https://jojoldu.tistory.com/48 : springBoot 실시간반영

think0831 commented 4 years ago

jenkins 환경 구축을 위한 aws cli

S3

https://docs.aws.amazon.com/ko_kr/cli/latest/reference/s3/index.html : S3 명령어

cp

: 로컬파일이나 S3 객체를 다른 장소나 S3에 복사한다.

aws s3 cp [copy URI] [target URL] [--region ap-northeast-2]

경로 형식

elesticbeanstalk

https://docs.aws.amazon.com/ko_kr/cli/latest/reference/elasticbeanstalk/index.html : elesticbeanstalk 명령어

create-application-version

: 지정된 어플리케이션으로 어플리케이션 버전을 생성한다.

aws elasticbeanstalk create-application-version
--region ap-northeast-2 
--application-name [name]
--version-label ${BUILD_TAG} 
--source-bundle S3Bucket= [S3_Url] ,S3Key=[war_file]

update-environment

: 환경을 업데이트하고 새로운 어플리케이션 버전을 배포

aws elasticbeanstalk update-environment 
--region ap-northeast-2 
--environment-name [environment name]
--version-label ${BUILD_TAG}