How to turn off centos system firewall

王林
Release: 2020-03-25 15:00:25
Original
3836 people have browsed it

How to turn off centos system firewall

View firewall status:

Command:

/etc/init.d/iptables status
Copy after login
Copy after login

How to turn off centos system firewall

Temporary Close the firewall:

Command:

/etc/init.d/iptables stop
Copy after login

Three OKs appear, the shutdown is successful. At this time, the firewall has been closed, and restarting is not allowed to take effect.

Command:

/etc/init.d/iptables status
Copy after login
Copy after login

Check the status after closing, it should show that firewall is not running

How to turn off centos system firewall

##Permanently close the firewall:

Command:

#chkconfig --level 2345 iptables off
Copy after login

or

#chkconfig  iptables off
Copy after login
where 2345 represents "execution level"

Level 0 means: shutdown

Level 1 means: single-user mode

Level 2 means: multi-user command line mode without network connection

Level 3 means: multi-user command line mode with network connection

Level 4 means: Unavailable

Level 5 means: Multi-user mode with graphical interface

Level 6 means: Restart

Related tutorial recommendations:

centos Tutorial

The above is the detailed content of How to turn off centos system firewall. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template