semanage port -l 查看所有開放端口 semanage port -l | grep 5000 ...
.下載工具:semanage yum provides semanage 查看該命令包含在哪個軟件包里 安裝該包 yum install policy... tab補全 .查看端口號 semanage port l 查看所有開放端口 semanage port l grep 查看 端口 semanage port l grep http port t 查看selinux針對http的策略開放的端 ...
2022-03-26 09:51 0 1728 推薦指數:
semanage port -l 查看所有開放端口 semanage port -l | grep 5000 ...
1、開啟端口(以2375端口為例) 2、關閉端口 3、查看端口狀態 iptables --list ...
[root@XM ~]#cat /etc/selinux/config ##selinux的路徑 [root@XM ~]#sed 's#SELINUX=enforcing#SELINX=disabled#g' /etc/selinux/config ##修改加-i [root@XM ...
一. service iptables stop 臨時關閉, chkconfig iptables off完全關閉 service iptables status狀態, service iptables start/restart 開啟/重啟防火牆 二. 輸入命令 iptables ...
查看所有打開的端口: firewall-cmd --zone=public --list-ports 添加 firewall-cmd --zone=public --add-port=80/tcp --permanent (--permanent永久生效,沒有此參數 ...
第一種臨時關閉-重啟服務器失效[root@oldboyedu-01 ~]# #查詢selinux狀態[root@oldboyedu-01 ~]# getenforce Enforcing[root@oldboyedu-01 ~]# #enforcing selinux正在 ...
firewalld.service 查看默認防火牆狀態(關閉后顯示not running,開啟后顯示runn ...
在CentOS7中,有很多CentOS 6中的常用服務發生了變化。 其中iptables是其中比較大的一個。防火牆iptables被firewalld取代。 本文將介紹,如果采用systemctl關閉firewalld,開啟iptables。 1.關閉firewalld 2. ...