欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

linux查看防火墻是否關(guān)閉的實(shí)例方法

 更新時(shí)間:2020年03月13日 11:36:55   作者:V  
在本篇文章里小編給各位分享的是關(guān)于linux查看防火墻是否關(guān)閉的實(shí)例方法,需要的朋友們可以學(xué)習(xí)下。

一、service方式

查看防火墻狀態(tài):

[root@centos6 ~]# service iptables status

iptables:未運(yùn)行防火墻。

推薦教程:linux教程

二、iptables方式

先進(jìn)入init.d目錄,命令如下:

[root@centos6 ~]# cd /etc/init.d/

[root@centos6 init.d]#

然后查看防火墻狀態(tài):

[root@centos6 init.d]# /etc/init.d/iptables status

內(nèi)容擴(kuò)展:

CentOS7 的防火墻配置跟以前版本有很大區(qū)別,CentOS7這個(gè)版本的防火墻默認(rèn)使用的是firewall,與之前的版本使用iptables不一樣

1、關(guān)閉防火墻:

systemctl stop firewalld.service

2、開(kāi)啟防火墻:

systemctl start firewalld.service

3、關(guān)閉開(kāi)機(jī)啟動(dòng):

systemctl disable firewalld.service

4、開(kāi)啟開(kāi)機(jī)啟動(dòng):

systemctl enable firewalld.service

到此這篇關(guān)于linux查看防火墻是否關(guān)閉的實(shí)例方法的文章就介紹到這了,更多相關(guān)linux如何查看防火墻是否關(guān)閉內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評(píng)論