站長資訊網(wǎng)
最全最豐富的資訊網(wǎng)站

centos關(guān)閉防火墻命令是什么

centos關(guān)閉防火墻命令:1、臨時關(guān)閉,代碼為【systemctl stop firewalld】;2、禁止開機啟動,代碼為【systemctl disable firewalld】。

centos關(guān)閉防火墻命令是什么

本文操作環(huán)境:Windows7系統(tǒng),centos6&&centos7版本,Dell G3電腦。

centos關(guān)閉防火墻命令:

CentOS6關(guān)閉防火墻使用以下命令,

//臨時關(guān)閉 service iptables stop //禁止開機啟動 chkconfig iptables off

CentOS7中若使用同樣的命令會報錯,

stop  iptables.service Failed to stop iptables.service: Unit iptables.service not loaded.

這是因為CentOS7版本后防火墻默認使用firewalld,因此在CentOS7中關(guān)閉防火墻使用以下命令,

//臨時關(guān)閉 systemctl stop firewalld //禁止開機啟動 systemctl disable firewalld Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

當(dāng)然,如果安裝了iptables-service,也可以使用下面的命令,

yum install -y iptables-services //關(guān)閉防火墻 service iptables stop Redirecting to /bin/systemctl stop  iptables.service //檢查防火墻狀態(tài) service iptables status Redirecting to /bin/systemctl status  iptables.service 鈼iptables.service - IPv4 firewall with iptables    Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)    Active: inactive (dead)

相關(guān)免費推薦:編程視頻課程

贊(0)
分享到: 更多 (0)
網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號
国产精品一区二区三区99| 四虎永久在线精品免费观看地址| 国产精品成人无码免费| 91精品国产免费久久国语蜜臀| 日韩美女18网站久久精品| 国产亚洲精品美女久久久久| 人妻少妇精品视频三区二区一区| 久久久999久久久精品| 日韩精品在线观看| 国产精品麻豆VA在线播放| 精品乱码一区内射人妻无码| 国产suv精品一区二区6| 国产精品自产拍在线网站| 精品麻豆国产色欲色欲色欲www| 午夜精品乱人伦小说区 | 日韩精品无码专区免费播放| 亚洲精品9999久久久久无码| 91久久精品国产成人久久| 2021国产精品自拍| 精品人无码一区二区三区| 久久精品国产亚洲AV高清热| 日产精品久久久一区二区| 久久99精品久久久久久首页| 国产成人无码久久久精品一| 国产亚洲精品资源在线26u| 日韩精品亚洲aⅴ在线影院| a级精品九九九大片免费看| 日韩精品在线观看| 国产成人精品无码一区二区三区 | 久久996热精品xxxx| 国产福利精品视频自拍| 国产精品手机在线观看你懂的| 国产在线精品一区在线观看| 精品国产一区在线观看| 日产精品卡2卡三卡乱码网址| 2021久久精品免费观看| 国产精品视频网站| 精品久久无码中文字幕| 国产精品久久久久久搜索| 国产亚洲精品VA片在线播放| 色哟哟精品视频在线观看|