How to install Nginx
1. Update and upgrade the packages
  1. sudo apt update && sudo apt upgrade
2. Install Nginx
  1. sudo apt install nginx
3. Verify the Nginx installation
  1. sudo systemctl status nginx
● nginx.service - A high performance web server and a reverse proxy server
  Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
  Active: active (running) since Fri 2024-03-29 10:41:32 UTC; 2min 3s ago
    Docs: man:nginx(8)
Main PID: 1883 (nginx)
    Tasks: 2 (limit: 1116)
  Memory: 4.6M
  CGroup: /system.slice/nginx.service
          ├─1883 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
          └─1884 nginx: worker process
4. Enable the Nginx service to start automatically at system startup
  1. sudo systemctl enable nginx
Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nginx
5. Navigate to http://localhost and you should see the default Nginx landing page