You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
823 B
23 lines
823 B
# 一、docker服务
|
|
2T硬盘挂载在/data目录下
|
|
![[Pasted image 20240218100402.png]]
|
|
# 二、防火墙
|
|
```shell
|
|
sudo ufw status
|
|
```
|
|
![[Pasted image 20240218100445.png]]
|
|
|
|
```shell
|
|
# 开放端口
|
|
sudo ufw allow 80/tcp
|
|
# 删除端口规则
|
|
sudo ufw delete allow 80/tcp
|
|
```
|
|
|
|
教程 [Ubuntu20.04 UFW防火墙放行指定端口教程 - 知乎 (zhihu.com)](https://zhuanlan.zhihu.com/p/628587521#:~:text=%E4%BD%BF%E7%94%A8%E4%BB%A5%E4%B8%8B%E5%91%BD%E4%BB%A4%E5%8F%AF%E4%BB%A5%E5%BC%80%E6%94%BE%E4%B8%80%E4%B8%AA%E6%8C%87%E5%AE%9A%E7%9A%84TCP%E7%AB%AF%E5%8F%A3%EF%BC%9A%20sudo%20ufw%20allow%20%3C%E7%AB%AF%E5%8F%A3%E5%8F%B7%3E%2Ftcp,%E4%BE%8B%E5%A6%82%EF%BC%8C%E8%A6%81%E5%BC%80%E6%94%BE80%E7%AB%AF%E5%8F%A3%EF%BC%9A%20sudo%20ufw%20allow%2080%2Ftcp)
|
|
# 三、蒲公英P2P
|
|
```shell
|
|
pgy
|
|
```
|
|
![[Pasted image 20240218101116.png]]
|