Friday, August 20, 2021

User Data :AWS : 80 : WebPort

https://gist.github.com/nktstudios/fcaf50c30f4ce50790876a3fe5dd8ac7


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#!/bin/bash

# update the machine
yum update -y

# install http
yum install -y httpd.x86_64

# start the service
systemctl start httpd.service

# enable service across reboots
systemctl enable httpd.service

# create the html page to render
echo "<h1>Hello World from NKT Studios!</h1>" >/var/www/html/index.html

No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass