Last active
December 6, 2018 08:46
-
-
Save ayuLiao/9c154c9cb4c7d666775082d7a6229b98 to your computer and use it in GitHub Desktop.
centos6的防火墙,iptables的关闭与启动以及状态查看
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # iptables操作,两种操作 | |
| # 立即生效 | |
| 开启: service iptables start | |
| 关闭: service iptables stop | |
| # 重启生效 | |
| 开启: chkconfig iptables on | |
| 关闭: chkconfig iptables off | |
| # 查看iptables状态 | |
| service iptables status | |
| iptables: Firewall is not running. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment