30 lines
469 B
Markdown
30 lines
469 B
Markdown
|
# 内网穿透
|
||
|
|
||
|
> 开发时,在本地电脑启动后端服务,然后通过内网穿透进行小程序真机调试。
|
||
|
|
||
|
需要有一台公网服务器,一个域名(可选),以及服务器打开对应端口
|
||
|
|
||
|
## bin 二进制文件下载
|
||
|
|
||
|
GitHub: https://github.com/rapiz1/rathole/
|
||
|
|
||
|
## 配置
|
||
|
|
||
|
修改 conf 文件夹中配置文件
|
||
|
|
||
|
## 启动
|
||
|
|
||
|
服务端
|
||
|
|
||
|
```bash
|
||
|
cd bin
|
||
|
rathole ../conf/server.toml
|
||
|
```
|
||
|
|
||
|
本地
|
||
|
|
||
|
```bash
|
||
|
cd bin
|
||
|
rathole.exe ../conf/client.toml
|
||
|
```
|