To install latest stable nginx server, run the following yum command: $ sudo yum install nginx
Stop Nginx command $ sudo systemctl stop nginx
Restart Nginx command $ sudo systemctl restart nginx
Find status of Nginx server command $ sudo systemctl status nginx
Step 4 – Open port 80 and 443 using firewall-cmd You must open and enable port 80 and 443 using the firewall-cmd command: $ sudo firewall-cmd --permanent --zone=public --add-service=http $ sudo firewall-cmd --permanent --zone=public --add-service=https $ sudo firewall-cmd --reload
Verify that port 80 or 443 opened using ss command: $ sudo ss -tulpn