gcloud 커맨드를 이용한 아파치 웹서버 VM 인스턴스 생성

조회 2,302,416 · 댓글 0
BBerger작성자2021년 12월 24일
gcloud compute instances create www1 \

--image-family debian-9 \
--image-project debian-cloud \
--zone us-central1-a \
--tags network-lb-tag \
--metadata startup-script="#! /bin/bash
sudo apt-get update
sudo apt-get install apache2 -y
sudo service apache2 restart
echo '<!doctype html><html><body><h1>www1</h1></body></html>' | tee /var/www/html/index.html"

로그인 후 답글을 남길 수 있습니다.