Installing NGINX
-
Upload the file
nginx-latest.el8.ngx.x86_64.rpm
through SCP under/root
; -
Access the server through SSH with an account with administrative privileges;
-
Install the NGINX web server using the following command:
yum localinstall /root/nginx-latest.el8.ngx.x86_64.rpm
-
Enable NGINX to start at boot using the following command:
systemctl enable nginx
-
Stop the NGINX service with the following command:
/etc/init.d/nginx stop