CentOS7 's firewall configuration is very different from previous versions, and after a great deal of trying, it finally found the key to solving the problem.
CentOS7 This version of the firewall defaults to use the firewall, and the previous version of the use of iptables is not the same. Configure the firewall as follows:
1, shut down the firewall: sudo systemctl stop Firewalld.service
2, turn off boot: sudo systemctl disable Firewalld.service
3. Install iptables Firewall
Perform the following command to install the iptables firewall: sudo yum install iptables-services?
4, configure the Iptables firewall, open the specified port (specific with the previous version, like a lot of online introduction, here is not much introduced)
5. Set iptables firewall boot: sudo systemctl enable iptables?
OK, depending on the configured port, you can access the