#!/bin/bash
yum -y update
yum -y install wget ruby
pip3 install flask
cd /home/ec2-user
wget https://aws-codedeploy-ap-northeast-2.s3.amazonaws.com/latest/install
aws s3 cp [] ./app.py
echo " * * * * * root python3 /home/ec2-user/app.py" >> /etc/crontab
chmod 777 ./install
./install auto
systemctl restart crond.service
systemctl start codedeploy-agent
systemctl enable codedeploy-agent
'Misc' 카테고리의 다른 글
2과제 스크립트와 파일들 (0) | 2021.10.05 |
---|---|
2020 전국기능경기대회 IT네트워크시스템 기초 1과제 해설 (0) | 2021.08.29 |
2019 전국기능경기대회 IT네트워크시스템 기초 1과제 해설 (5) | 2020.12.01 |
REC-PE구조 간단하게 살펴보기 (0) | 2018.12.13 |