We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40302ee commit e521debCopy full SHA for e521deb
webserver.sh
@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+##To Install HTTPD Server and Start Service
3
+DEFAULTPATH="/var/www/html/index.html"
4
+sudo yum update –y;
5
+sudo yum install httpd –y;
6
+sudo service httpd start;
7
+sudo chkconfig httpd on;
8
+
9
+sudo systemctl enable httpd.service;
10
+sudo systemctl start httpd.service;
11
12
+sudo echo '<html>' > $DEFAULTPATH
13
+sudo echo '<h1> H1! Welcome To My First Website in AWS </h1>' >> $DEFAULTPATH
14
+sudo echo '</html>' >> $DEFAULTPATH
15
16
+## END ##
0 commit comments