5 views
by

To open port in Centos 7, use firewall-cmd (this is the command instead of iptables)

firewall-cmd --permanent --add-port=80/tcp
firewall-cmd --reload

This needs to be run as the root user.

Welcome to Ask DevOps!
You can find quick one line answers to popular DevOps, Amazon AWS, Microsoft Azure, Google cloud services, tools & basic to advanced Linux questions!
DevOps Tools list
.. 
...