33 lines
371 B
Markdown
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
|
|
```
|
|
|
|
|
|
|