Centos7 configure iptables to open port 80
Centos7 uses firewalld to manage the firewall by default.
After centos7 is installed, the nginx server is installed, but the same LAN cannot be accessed. My brother told me that the Firewall should be enabled. Turn off the firewall.
Give a decisive try.
However, each firewall is always self-starting.
Then, my brother told me two options: either use firewalld for management or use iptables.
Previously, iptables was used. After the upgrade to 7, firewalld was replaced with iptables.
All I found on the Internet is to replace firewall with iptables, so I thought I would also use iptables, and there will be a lot of online prompts. Installation and configuration should not be difficult.
The following figure shows the configuration for enabling port 80 on the Internet. The save command on the third line has an error because the file does not exist.
VcXk1sPOxLz + 1tChozwvcD4KPHA + 1dK1vcXk1sPOxLz + o6y/release/atcS/release + 1tjG9M + release/LN + L/release = "Laugh" src = "http://www.bkjia.com/uploads/allimg/150605/0413006305-1.gif">
Then open port 3306 as shown above.