How to open port 80 on Centos7

To open port 80 in the firewall, run the following………..
[root@srv ]# firewall-cmd –permanent –zone=public –add-port=80/tcp

Next, you want to reload the firewall with the following command
[root@srv ]# firewall-cmd –reload
You can verify this by running the following,
[root@srv ]# firewall-cmd –zone=public –query-port=80/tcp

Leave a Reply

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