Back to articles
DAY 1 Setting up EC2 & Nginx
How-ToDevOps

DAY 1 Setting up EC2 & Nginx

via Dev.toEr. Bhupendra

๐ŸŽฏ 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"

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles