아파치:

#!/bin/bash yum update -y yum install -y httpd systemctl enable httpd systemctl start httpd

echo "<h1>Hello from Apache on EC2</h1>" > /var/www/html/index.html

nginx:

#!/bin/bash yum update -y yum install -y nginx1 echo "<h1>Hello from Nginx</h1>" > /usr/share/nginx/html/index.html systemctl enable nginx systemctl start nginx