typora/note/linux/centos/防火墙firewalld.md

33 lines
371 B
Markdown
Raw Normal View History

2024-12-11 21:48:55 -05:00
### 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
```