配置方法如下:
authtoken: NNNNNNNNNNNNNNNNNNNN
tunnels:
tunnel1:
addr: 8088
proto: http
tunnel2:
addr: 80
proto: http
然后使用如下命令即可启动:
ngrok start tunnel1 tunnel2 //启动隧道tunnel1和tunnel2
ngrok start --all // 启动定义的所有隧道
ngrok start --none // 在不启动任何隧道的情况下运行ngrok