Accessing HTTP
1. 1st install a EC2
2. 2nd
3.
Now access the --
login as: ec2-user
Authenticating with public key "imported-openssh-key"
Passphrase for key "imported-openssh-key":
__| __|_ )
_| ( / Amazon Linux 2 AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-2/
6 package(s) needed for security, out of 16 available
Run "sudo yum update" to apply all updates.
[ec2-user@ip-172-31-87-84 ~]$
[ec2-user@ip-172-31-87-84 ~]$ sudo -i
[root@ip-172-31-87-84 ~]#
[root@ip-172-31-87-84 ~]# yum update -y
[root@ip-172-31-87-84 ~]# yum update -y
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
No packages marked for update
[root@ip-172-31-87-84 ~]#
[root@ip-172-31-87-84 ~]# yum install httpd
Is this ok [y/d/N]: yes
[root@ip-172-31-87-84 ~]#
[root@ip-172-31-87-84 ~]# pwd
/root
[root@ip-172-31-87-84 ~]#
[root@ip-172-31-87-84 ~]# cd /var/www/html/
[root@ip-172-31-87-84 html]#
[root@ip-172-31-87-84 html]# pwd
/var/www/html
[root@ip-172-31-87-84 html]# touch index.html
[root@ip-172-31-87-84 html]#
[root@ip-172-31-87-84 html]# cat > index.html
Hi I am aws .
Wishing a Happy New year 2022.
^C
[root@ip-172-31-87-84 html]# cat index.html
Hi I am aws .
Wishing a Happy New year 2022.
Now access web ---