인스턴스 환경설정하기
웹서버 환경 구성을 위하여 업데이트 후 설치 및 서비스 설정을 합니다. (사용 명령어: sudo yum update –y)
sudo yum update –y

웹서버 환경 구성을 위하여 업데이트 후 설치 및 서비스 설정을 합니다. (사용 명령어: sudo yum install httpd -y)
sudo yum install httpd -y

웹서버 환경 구성을 위하여 업데이트 후 설치 및 서비스 설정을 합니다. (사용 명령어: sudo service httpd start)
sudo service httpd start

인스턴스 퍼블릭 IP 주소를 복사해서 웹 브라우저에서 확인해 봅니다.

웹 브라우저에 기본 Test Page 가 나오는 것을 확인 할 수 있습니다.

Vi 편집기를 사용하여 /var/www/html/index.html 파일에 “Hi, I’m Web Server 1.”을 입력 및 저장 한 후,
curl localhost 명령어를 통해서 웹서버가 정상적으로 동작하는지 확인해 봅니다.
(사용 명령어: sudo vi /var/www/html/index.html, :wq, curl localhost)
sudo vi /var/www/html/index.html
curl localhost
