virtual machine in aws
-
ec2 instance ==> VM
-
ebs ==> disk
-
instance type ==> cpu, memory
-
public ip (static ip)
-
secuity group ==> firewall
- inbound rule
- outbound rule
-
keypair
- import
- create
- public & pravite file
-
operating system
- linux/unix ==> debian (debian & ubuntu), redhat (redhat, centos, Amazonlinux)
- windows
- mac

create ec2 instance (watch class room recording)
connect ec2 instance:
* ssh username@ipaddress ==> ask password
* ssh -i <path of pemfile> user@ipaddress
* run below cmd to install apache2 in ubutu server
* sudo apt-get update
* sudo apt-get install apache2 -y
* sudo systemctl status apache2
* Now check appache web page url: http://<ipaddress>
