Centos7 configure iptables to open port 80

Source: Internet
Author: User
Tags nginx server

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.