Skip to content

Commit

Permalink
update linux: 增加防火墙相关命令
Browse files Browse the repository at this point in the history
  • Loading branch information
chua-n committed Nov 13, 2024
1 parent 1d9ca05 commit e900217
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions book/Linux/网络操作.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,22 @@ nmap [Scan Type(s)] [Options] {target specification}
You have new mail in /var/spool/mail/root
```

## 7. 上传/下载
## 7. 防火墙

- 开放端口:

```shell
firewall-cmd --zone=public --add-port=18227/tcp --permanent
firewall-cmd --reload
```

- 查询当前开放的端口:

```shell
firewall-cmd --list-ports
```

## 8. 上传/下载

### wget

Expand Down Expand Up @@ -391,7 +406,7 @@ scp <option> srcPath tgtPath
- `rz`命令(Receive Zmodem),将本地文件批量上传到远程Linux/Unix服务器,注意不能上传文件夹。
- `sz`命令(Send Zmodem),将多个文件从远程服务器下载到本地,注意不能下载文件夹。

## 8. 文件传输协议
## 9. 文件传输协议

文件传输是数据交换的主要形式。在进行文件传输时,为使文件能被正确识别和传送,我们需要在两台计算机之间建立统一的传输协议。这个协议包括了文件的识别、传送的起止时间、错误的判断与纠正等内容。

Expand Down

0 comments on commit e900217

Please sign in to comment.