Install Nginx on CentOS 8 & RHEL 8

You first need to install the epel-release package and then install nginx package:

yum install epel-release -y
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 *