Installing NGINX

  1. Upload the file nginx-latest.el8.ngx.x86_64.rpm through SCP under /root;

  2. Access the server through SSH with an account with administrative privileges;

  3. Install the NGINX web server using the following command:

    yum localinstall /root/nginx-latest.el8.ngx.x86_64.rpm
  4. Enable NGINX to start at boot using the following command:

    systemctl enable nginx
  5. Stop the NGINX service with the following command:

    /etc/init.d/nginx stop