Justin의 개발 로그
보호되어 있는 글입니다. 내용을 보시려면 비밀번호를 입력해주세요.
LInux 정해진 시간에 shutdown
AWS_NCP/EC2 2019. 6. 11. 17:42

# 크론탭을 이용해 셧다운하는 간단한 셋팅입니다. # Linux 종류별로 셧다운 명령이 다를 수 있으니 # OS에 맞게 명령어를 선택해야 합니다. crontab -e #Auto poweroff at 10 PM 00 22 * * * sudo poweroff or 00 22 * * * sudo shutdown -h

11. 스프링부트로 웹 서비스 출시하기 - AWS Linux 재기동 후 쉘 실행
AWS_NCP/AWS DevOps 구축 2019. 3. 14. 19:44

11. 스프링부트로 웹 서비스 출시하기 EC2 인스턴스가 재기동 될 때 서비스가 자동으로 실행되도록 하는 방법 입니다. 관련 소스는 GitHub 에 있습니다. CodeDeploy-Agent 구동 /etc/init.d/codedeploy-startup.shsudo service codedeploy-agent start CodeDeploy Agent 설치는 아래 링크의 6-3-6. 참고https://justinadpark.tistory.com/7?category=739024 Spring Web Service 자동 실행/etc/init/spring-webservice.conf description "Hello spring webservice" # Start when the system is ready to d..

article thumbnail
AWS에서 Jenkins와 Node.js를 이용한 서비스 구성 Part 3: Jenkins -  Node.js App Integration
AWS_NCP/AWS DevOps 구축 2019. 3. 2. 18:01

What are we going to build? In this article series, we will build a simple Node.js app that hosted on AWS EC2 instance. Furthermore, we are going to configure automation server and host Jenkins on a separate AWS EC2 instance. Jenkins will help us to automate the CI/CD process. For every code change from our Node.js app repository, Jenkins will get notified and it will pull the changes into our J..

AWS에서 Jenkins와 Node.js를 이용한 서비스 구성 Part2: Node.js App과 EC2 application server
AWS_NCP/AWS DevOps 구축 2019. 3. 2. 17:42

What are we going to build?In this article series, we will build a simple Node.js app that hosted on AWS EC2 instance. Furthermore, we are going to configure automation server and host Jenkins on a separate AWS EC2 instance. Jenkins will help us to automate the CI/CD process. For every code change from our Node.js app repository, Jenkins will get notified and it will pull the changes into our Je..

AWS에서 Jenkins와 Node.js를 이용한 서비스 구성 Part1: Jenkins 구성
AWS_NCP/AWS DevOps 구축 2019. 3. 2. 17:39

퍼온 곳 https://medium.com/konvergen/jenkins-for-node-js-app-on-aws-ec2-part-1-installing-jenkins-on-ec2-24675cc08998 Jenkins를 수동으로 설치하는 방법이 있어 퍼왔습니다. 다만, 저는 Jenkins를 자주 설치해서 사용하기 때문에, CloudFormation + Ansible로 IaC (Infrastructure as Code)로 구성해 두었습니다.What are we going to build?In this article series, we will build a simple Node.js app that hosted on AWS EC2 instance. Furthermore, we are going to co..

article thumbnail
2. VPC와 Subnet 생성 실습
AWS_NCP 2019. 3. 2. 10:50

AWS Console에 접속 합니다.VPC 생성에 앞서 지역을 서울로 선택 합니다.서울이 아닌 다른 지역을 선택하셔도 무방하며, 다른 지역을 선택하시면 아래 따라하기 에서 가용 영역(Availability Zone)이 달라지게 됩니다. AWS Console > VPC 접속 AWS Console > 서비스 선택 검색창에 VPC 입력 검색된 VPC 선택 VPC 생성저의 VPC 대시보드에는 아래와 같이 기본 VPC가 하나 잡혀 있습니다.저의 경우 기본 VPC는 사용하지 않고, 새로운 VPC를 만들어서 사용하고 있으며, 정보 보호를 위해 화면 캡처는 사용하지 않는 VPC만 캡처 했습니다. Create VPC 를 선택합니다.Name Tag : my Smallest VPC IPv4 CIDR Block : 192.1..

1. VPC의 완벽 이해
AWS_NCP 2019. 3. 2. 09:32

Amazon VPC랑 무엇인가? Amazon Virtual Private Cloud(VPC)는 사용자의 AWS 계정 전용 가상 네트워크입니다. VPC는 AWS 클라우드에서 다른 가상 네트워크와 논리적으로 분리되어 있습니다. Amazon EC2 인스턴스와 같은 AWS 리소스를 VPC에서 실행할 수 있습니다. IP 주소 범위와 VPC 범위를 설정하고 서브넷을 추가하고 보안 그룹을 연결한 다음 라우팅 테이블을 구성합니다. 서브넷은 VPC의 IP 주소 범위입니다. 지정된 서브넷으로 AWS 리소스를 시작할 수 있습니다. 인터넷에 연결되어야 하는 리소스에는 퍼블릭 서브넷을 사용하고, 인터넷에 연결되지 않는 리소스에는 프라이빗 서브넷을 사용하십시오. 퍼블릭 서브넷과 프라이빗 서브넷에 대한 자세한 정보는 VPC 및 서..

[팁]아마존 리눅스에 Node.js 설치 방법
AWS_NCP/EC2 2019. 2. 28. 22:07

2019년 2월 말을 기준으로 아마존 EC2 리눅스에 Node.js 최신 버전을 설치하는 방법입니다. 아래와 같이 여러 nvm 버전 중에서 하나 내려 받음 [ec2-user@xxxx]$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash [ec2-user@xxxx]$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash [ec2-user@xxxx]$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.7/install.sh | bash 설치가 완료되면..

보호되어 있는 글입니다. 내용을 보시려면 비밀번호를 입력해주세요.