DAY 1 Setting up EC2 & Nginx
๐ฏ Day 1 Objective Explained โ 1. Launch an EC2 Instance ๐ เคฎเคคเคฒเคฌ: AWS cloud เคฎเฅเค เคเค virtual server เคฌเคจเคพเคจเคพ What you do: Go to AWS EC2 Launch instance (Ubuntu preferred) Select t2.micro Download .pem k...

Source: DEV Community
๐ฏ Day 1 Objective Explained โ
1. Launch an EC2 Instance ๐ เคฎเคคเคฒเคฌ: AWS cloud เคฎเฅเค เคเค virtual server เคฌเคจเคพเคจเคพ What you do: Go to AWS EC2 Launch instance (Ubuntu preferred) Select t2.micro Download .pem key Why? ๐ This is your server (like your laptop but in cloud) โ
2. Configure Security Groups ๐ เคฎเคคเคฒเคฌ: เคเฅเคจ server เคเฅ access เคเคฐ เคธเคเคคเคพ เคนเฅ Important Ports: 22 (SSH) โ login เคเคฐเคจเฅ เคเฅ เคฒเคฟเค 80 (HTTP) โ website เคฆเคฟเคเคพเคจเฅ เคเฅ เคฒเคฟเค 443 (HTTPS) โ secure website Example: Port 22 โ Your IP (secure) Port 80 โ 0.0.0.0/0 (public access) Why? ๐ Without this, browser เคธเฅ access เคจเคนเฅเค เคนเฅเคเคพ โ
3. Deploy Nginx (Make it Public) ๐ เคฎเคคเคฒเคฌ: server เคเฅ website server เคฌเคจเคพเคจเคพ Commands: remember this only four command sudo apt update sudo apt install nginx -y suod systemctl start ngnix sudo systemctl start nginx Test: http://your-public-ip ๐ You will see: "Welcome to Nginx"