EC2 instance my quickstart of setting up web server

 

When setting up EC2 instance, these bad boys are really good for setting up http server by placing it in the user data sections.

 

sudo yum update -y

sudo yum install -y httpd

sudo systemctl start httpd

sudo systemctl enable httpd

sudo cat "<h1>hello there! </h1>" > /var/www/html/index.html


Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type