Showing posts with label How to run web application on EC2. Show all posts
Showing posts with label How to run web application on EC2. Show all posts

Monday, 11 March 2019

How to run web application on EC2 by Raj Gupta


Create EC2 server and run the below httpd application to test

[root@ip-172-31-93-120 ~]# yum install httpd –y
[root@ip-172-31-93-120 ~]# cd /var/www/html
[root@ip-172-31-93-120 html]# vi index.html
<html><h1>Raj Kumar Gupta</h1></html>       then save the file

[root@ip-172-31-93-120 html]# cd /root
[root@ip-172-31-93-120 ~]# service httpd start
[root@ip-172-31-93-120 ~]# service httpd status

then type the public ip to browser