五月综合激情婷婷六月,日韩欧美国产一区不卡,他扒开我内裤强吻我下面视频 ,无套内射无矿码免费看黄,天天躁,日日躁,狠狠躁

新聞動態(tài)

linux之centos7防火墻基本使用詳解

發(fā)布日期:2022-03-14 16:08 | 文章來源:gibhub

1、firewalld的基本使用

啟動:

systemctl start firewalld

查看狀態(tài):

systemctl status firewalld

停止:

systemctl disable firewalld

禁用:

systemctl stop firewalld

2.systemctl是CentOS7的服務管理工具中主要的工具,它融合之前service和chkconfig的功能于一體。

啟動防火墻:

systemctl start firewalld.service

關閉防火墻:

systemctl stop firewalld.service

重啟防火墻:

systemctl restart firewalld.service

顯示防火墻的狀態(tài):

systemctl status firewalld.service

在開機時防火墻:

systemctl enable firewalld.service

在開機時禁用防火墻:

systemctl disable firewalld.service

查看防火墻是否開機啟動:

systemctl is-enabled firewalld.service

查看已啟動的服務列表:

systemctl list-unit-files|grep enabled

查看啟動失敗的服務列表:

systemctl --failed

3.配置firewalld-cmd

查看版本:

firewall-cmd --version

查看幫助:

firewall-cmd --help

顯示狀態(tài):

firewall-cmd --state

查看所有打開的端口:

firewall-cmd --zone=public --list-ports

更新防火墻規(guī)則:

firewall-cmd --reload

查看區(qū)域信息:

firewall-cmd --get-active-zones

查看指定接口所屬區(qū)域:

firewall-cmd --get-zone-of-interface=eth0

拒絕所有包:

firewall-cmd --panic-on

取消拒絕狀態(tài):

firewall-cmd --panic-off

查看是否拒絕:

firewall-cmd --query-panic

4:開啟端口

添加

firewall-cmd --zone=public --add-port=80/tcp --permanent  (--permanent永久生效,沒有此參數(shù)重啟后失效) #開啟80端口

重新載入

firewall-cmd --reload

查看

firewall-cmd --zone=public --query-port=80/tcp  #查看80端口是否開放

刪除

firewall-cmd --zone= public --remove-port=80/tcp --permanent #刪除80端口配置

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持本站。

版權聲明:本站文章來源標注為YINGSOO的內容版權均為本站所有,歡迎引用、轉載,請保持原文完整并注明來源及原文鏈接。禁止復制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務器上建立鏡像,否則將依法追究法律責任。本站部分內容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學習參考,不代表本站立場,如有內容涉嫌侵權,請聯(lián)系alex-e#qq.com處理。

相關文章

實時開通

自選配置、實時開通

免備案

全球線路精選!

全天候客戶服務

7x24全年不間斷在線

專屬顧問服務

1對1客戶咨詢顧問

在線
客服

在線客服:7*24小時在線

客服
熱線

400-630-3752
7*24小時客服服務熱線

關注
微信

關注官方微信
頂部