DEV Community

joeydanielsdev
joeydanielsdev

Posted on

SETTING UP NGINX SERVER ON UBUNTU

  • I installed deployed Ubuntu VPS on AWS EC2 and connected to it

Image description

Image description

  • Opened Ubuntu terminal and ran commands to install NGINX

sudo apt update
sudo apt install nginx
sudo ufw app list
sudo ufw allow 'Nginx HTTP'
sudo ufw status
systemctl status nginx_

Image description

  • Navigate to edit the default Ubuntu Debian html file to my desired text using sudo nano command as it is a protected file

sudo systemctl reload nginx
cd /var/www/html
sudo nano index.nginx-debian.html

  • Restart Nginx using $sudo systemctl start nginx

Image description

Reference



- https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04
- https://chat.deepseek.com/

- https://hng.tech/hire/devops-engineers
- https://hng.tech/hire/cloud-engineers



Enter fullscreen mode Exit fullscreen mode

Top comments (0)