File tree 1 file changed +27
-21
lines changed 1 file changed +27
-21
lines changed Original file line number Diff line number Diff line change 3
3
# 科学上网
4
4
5
5
作者:左耳朵 [ http://coolshell.cn ] ( http://coolshell.cn )
6
- 更新时间:2023-04-19
6
+ 更新时间:2023-04-28
7
7
8
8
这篇文章可以写的更好,欢迎到 [ https://github.com/haoel/haoel.github.io ] ( https://github.com/haoel/haoel.github.io ) 更新
9
9
@@ -1162,32 +1162,38 @@ sudo docker run -d --name gost-warp \
1162
1162
>
1163
1163
> 2 ) 你也可以使用 V2Ray 的路由模式,参见 [ V2Ray 的路由功能] ( https://www.v2ray.com/chapter_02/03_routing.html ) 。V2Ray的路由模式就比 gost 要强很多。你还可以通过使用预定义域名列表 ` geolocation-cn ` 把其的路由转发到 Cloudflare WARP 的 Socks5 代理上,以避免你的 VPS 的 IP 被暴露。
1164
1164
1165
- ** 其它事宜**
1165
+ ** 6) 其它事宜**
1166
1166
1167
- ` warp-cli ` 是 ` warp-svc ` 的客户端,真正的程序是 ` warp-svc ` ,你可以使用如下命令来查看:
1167
+ - ** 查看运行状态 ** 。 ` warp-cli ` 是 ` warp-svc ` 的客户端,真正的程序是 ` warp-svc ` ,你可以使用如下命令来查看:
1168
1168
1169
- ``` shell
1170
- systemctl status warp-svc
1171
- ```
1169
+ ``` shell
1170
+ systemctl status warp-svc
1171
+ ```
1172
1172
1173
- 另外,如果你的程序出现文件描述不足的情况 :
1173
+ - ** 内存泄漏问题 ** 。 目前, ` warp-svc ` 这个程序有内存泄漏的问题(参看 [ # 124 ] ( https://github.com/haoel/haoel.github.io/issues/124 ) ),所以,你需要定期重启服务。你可以使用cronjob来重启服务。运行 ` crontab -e ` ,然后添加如下内容 :
1174
1174
1175
- ``` shell
1176
- warp-cli connect
1177
- Status update: Unable to connect. Reason: Insufficient system resource: file descriptor
1178
- ```
1179
- 你需要修改文件描述符的限制,这类的文章比较多,你自行 Google,这里就不再赘述了。如果你想配置 Cloudflare WARP 文件描述符的限制,你可以编辑 ` /lib/systemd/system/warp-svc.service ` ,在 ` [Service] ` 下面添加如下内容:
1175
+ ``` cron
1176
+ 0 * * * * /bin/systemctl resetart warp-svc
1177
+ ```
1180
1178
1181
- ``` ini
1182
- LimitNOFILE =65535
1183
- LimitNOFILESoft =65535
1184
- ```
1185
- 然后,重启服务:
1179
+ - ** 文件描述符不足** 。另外,如果你的程序出现文件描述不足的情况:
1186
1180
1187
- ``` shell
1188
- sudo systemctl daemon-reload
1189
- sudo systemctl restart warp-svc.service
1190
- ```
1181
+ ``` shell
1182
+ warp-cli connect
1183
+ Status update: Unable to connect. Reason: Insufficient system resource: file descriptor
1184
+ ```
1185
+ 你需要修改文件描述符的限制,这类的文章比较多,你自行 Google,这里就不再赘述了。如果你想配置 Cloudflare WARP 文件描述符的限制,你可以编辑 ` /lib/systemd/system/warp-svc.service ` ,在 ` [Service] ` 下面添加如下内容:
1186
+
1187
+ ``` ini
1188
+ LimitNOFILE =65535
1189
+ LimitNOFILESoft =65535
1190
+ ```
1191
+ 然后,重启服务:
1192
+
1193
+ ``` shell
1194
+ sudo systemctl daemon-reload
1195
+ sudo systemctl restart warp-svc.service
1196
+ ```
1191
1197
1192
1198
#### 9.4.3 Docker 代理
1193
1199
You can’t perform that action at this time.
0 commit comments