Sunday, September 22, 2019

6.1 : EC2 : EC2 Creation & Install Apache

6.1 : EC2 : EC2 Creation & Install Apache

#########################################################################

-> Create EC2 (provide VPC, Subnet, Storage, Tag and download keyPair and launch EC2)
           Internally it creates
                IP address
                Security group
-> Create Inbound rule in Security group for HTTP (since we are installing appache)
-> Use EC2 IP and login using Putty and install Appache (use ppk downloaded file to login)
            ec2-user
            sudo su -
            yum install httpd
            systemctl start httpd
            systemctl status httpd
            systemctl stop firewalld
            vi /var/www/html/index.html

#########################################################################














































ec2-user
sudo su -
yum install httpd
systemctl start httpd
systemctl status httpd
systemctl stop firewalld
vi /var/www/html/index.html










No comments:

Post a Comment