Skip to content

Commit a3a052b

Browse files
committed
update the open the port of server by one command in README.md file
1 parent 2583919 commit a3a052b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,13 @@ wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/dou
124124

125125
然后依照提示依次配置即可(未安装过 SSR 的服务器在第一个提示出现时输入 1)。
126126

127-
在提示设置端口的时候可以用默认的,也可以用自己的,但是切记不要使用1080以前的端口,建议 3000-30000 之间。之后需要进入到服务器后台,**打开配置端口**ssr服务就配置好了。
127+
在提示设置端口的时候可以用默认的,也可以用自己的,但是切记不要使用1080以前的端口,建议 3000-30000 之间。之后需要打开服务器的端口,方法一是进入到服务器后台**打开配置端口**不过需要一定的时间生效。方法二是使用以下命令开启对应的服务器端口(ports 对应的是己经设置的ssr 服务端口):
128128

129-
设置完成后等待几分钟就好了。
129+
```shell
130+
iptables -A INPUT -p tcp --dport ports -j ACCEPT
131+
```
132+
133+
该命令会立即开启对应的端口。
130134

131135
> 具体可以查看此链接:[视频教程](https://www.bilibili.com/video/BV1w8411T7am/?spm_id_from=333.999.0.0&vd_source=4571028da75b46fed5099ff82016652c)
132136

0 commit comments

Comments
 (0)