I used the Linux command--shut down the firewall

Source: Internet
Author: User
To turn off the firewall:

Firewall can be used to restrict the use of some ports, can be through the Linux command relationship to it, the corresponding instructions:

To view firewall information:

#service iptables Status

You can see the state of the firewall:

To turn off the firewall:

#service iptables Stop

After closing, verify by the above instruction:

But this way of shutting down the firewall is the same as shutting down a program in Windows. The next time you reboot the program may start or start at some point after the boot.

So with the command chkconfig, this instruction is used to update (start or stop) and query the system service's boot level information.

To view the startup level of the system service:

#chkconfig--list

View the situation:

This command shows the startup of the service, and if there is an on, the service must automatically start at some point after the boot. The following is a pipeline filter to see how the firewall starts.

#chkconfig--list | grep iptables

View results:

To turn off automatic operation of the firewall:

#chkconfig iptables off

and then verify.

I used the Linux command--shut down the firewall

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.