Centos 7 Open Port issue

Source: Internet
Author: User

A. Scene

For this may often use Linux system students are not unfamiliar, there are many online. But most of them are operation Iptables, thank the author to share. These are not what I want to say, what I want to say is:

Since I am using the CentOS 7 64-bit operating system, there is no iptables file, so you know.

Two. Resolve

Centos 7 default installation firewall for firewall

Detailed Description:

Switch Service
Systemctl Start Firewalld.service
Systemctl Stop Firewalld.service

Emergency mode: Off-grid
Firewall-cmd--panic-on Open
Firewall-cmd--panic-off off

Firewall-cmd Related introduction:

http://my.oschina.net/fhd/blog/413945

Firewall-cmd using:

Open port

Firewall-cmd--zone=public--add-port=80/tcp--permanent command meaning:--zone scope--add-port=80/tcp Add port in the format: Port/ Communication protocol--permanent Permanent, no failure after this parameter restart

Centos 7 Open Port issue

Related Article

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.