Install Nginx on CentOS 8 & RHEL 8

You first need to install the nginx package:

yum install nginx -y

Then you need to add nginx service to the firewall at both https and http ports, publicly.

sudo firewall-cmd --permanent --zone=public --add-service=https --add-service=http
sudo firewall-cmd --reload

Leave a Reply

Your email address will not be published. Required fields are marked *