26 2021


1.查看防火墙状态

systemctl status firewalld


2.打开防火墙

systemctl start firewalld


3.关闭防火墙

systemctl stop firewalld


4.重启防火墙

systemctl reload firewalld


5.开机自启动防火墙

systemctl enable firewalld


6.禁止开机启动防火墙

systemctl disable firewalld


7.查看已打开的端口

firewall-cmd --list-ports

netstat -ntpl

netstat -nupl


8.打开端口

firewall-cmd --permanent --zone=public --add-port=8088/tcp 


9.关闭端口

firewall-cmd --permanent --zone=public --remove-port=8088/tcp


延伸阅读
  1. linux 挖矿病毒清除
  2. Html Meta referrer 标签的简介