Home  >  Article  >  Operation and Maintenance  >  How to turn off centos system firewall

How to turn off centos system firewall

王林
王林Original
2020-03-25 15:00:253847browse

How to turn off centos system firewall

View firewall status:

Command:

/etc/init.d/iptables status

How to turn off centos system firewall

Temporary Close the firewall:

Command:

/etc/init.d/iptables stop

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

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

or

#chkconfig  iptables off

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!

Statement:
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
Previous article:How to upgrade centosNext article:How to upgrade centos