-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating WebSite for first time in AWS EC2 Launch
- Loading branch information
Ankam Ravi Kumar
authored
Dec 20, 2018
1 parent
40302ee
commit e521deb
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
##To Install HTTPD Server and Start Service | ||
DEFAULTPATH="/var/www/html/index.html" | ||
sudo yum update –y; | ||
sudo yum install httpd –y; | ||
sudo service httpd start; | ||
sudo chkconfig httpd on; | ||
|
||
sudo systemctl enable httpd.service; | ||
sudo systemctl start httpd.service; | ||
|
||
sudo echo '<html>' > $DEFAULTPATH | ||
sudo echo '<h1> H1! Welcome To My First Website in AWS </h1>' >> $DEFAULTPATH | ||
sudo echo '</html>' >> $DEFAULTPATH | ||
|
||
## END ## |