DevOps Classroom notes 02/Feb/2026

Setup a Website in Nginx

  • We would need a linux server and webserver and some website
  • Linux Servers:
    • Ubuntu 24.04
  • WebServer:
    • Nginx
  • Website:

Steps:

  • Create a linux vm (Azure/AWS/GCP)
  • Installing nginx You are a linux expert, Give me step by step commands to install nginx on ubuntu 24.04
sudo apt update
sudo apt install nginx -y
sudo systemctl status nginx.service
  • In nginx and apache the folder where we can host websites is /var/www/html
  • Now download the website
sudo apt install unzip
cd /tmp
wget https://templatemo.com/tm-zip-files-2020/templatemo_589_lugx_gaming.zip
cd templatemo_589_lugx_gaming/
sudo cp --recursive . /var/www/html/

  • Navigate to http://

Package Managers

  • In Linux to install softwares we have folliwng ways
    • code + make
    • packages (.deb, .rpm)
      • deb dpkg -i <package>.deb
      • rpm rpm -ivh <package>.rpm
    • Package Managers
      • apt (Debian)
      • dnf (yum) (Redhat)
      • snap
  • APT:
    • APT is a package manager used in debian based distributions
    • apt will have package definitions that needs to be up to date apt update
    • To install software apt install <package-name>
  • Exericse: Try installing the same website using apache server on redhat
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company
Exit mobile version
%%footer%%