1、下载之后直接解压得到 一个 ngrok 文件
2、直接终端运行
chmod a+x ngrok
3、开启服务
./ngrok http localhost:8080
或者
./ngrok http 8080
ngrok by @inconshreveable (Ctrl+C to quit)
Session Status online
Account Harry (Plan: Free)
Update update available (version 2.3.40, Ctrl-U to update)
Version 2.3.38
Region United States (us)
Web Interface http://127.0.0.1:4040
Forwarding http://4b735dffcb70.ngrok.io -> http://localhost:8080
Forwarding https://4b735dffcb70.ngrok.io -> http://localhost:8080
Connections ttl opn rt1 rt5 p50 p90
0 0 0.00 0.00 0.00 0.00