typora/note/linux/centos/防火墙firewalld.md
2024-12-12 10:48:55 +08:00

33 lines
371 B
Markdown

### 1. 查看防火墙状态
```bash
systemctl status firewalld.service
```
### 2. 关闭防火墙
```bash
systemctl stop firewalld.service
```
### 3. 禁用防火墙
```bash
systemctl disable firewalld.service
```
### 4. 启用防火墙
```bash
systemctl enable firewalld.service
```
### 5. 开启防火墙
```bash
systemctl start firewalld.service
```