-
首先要确保mac已经安装了brew, 因为我们是使用brew安装
-
访问地址:根据地址操作(https://ngrok.com/download)
![](https://img.haomeiwen.com/i9183555/4a98bd6125a738b0.png)
注意:Add authtoken的时候 如果使用 第一步后执行:ngrok http 80 没成功出现:
The authtoken you specified does not look like a proper ngrok tunnel authtoken.
Your authtoken: yourself-token
Instructions to install your authtoken are on your ngrok dashboard:
https://dashboard.ngrok.com/get-started/your-authtoken
ERR_NGROK_105
可采用第2种方式
第二种方式的话需要先执行:
cd /usr/local/bin
./ngrok authtoken
![](https://img.haomeiwen.com/i9183555/70c0aea3a89dfa3d.png)
然后打开:~/.ngrok2/ngrok.yml
添加你的:authtoken
![](https://img.haomeiwen.com/i9183555/3ae0566736d0e3d9.png)
保存退出,然后执行:ngrok http 80 (端口号可自定义)
运行后出现:
![](https://img.haomeiwen.com/i9183555/9e44b88e35f96967.png)
说明成功,问题解决!
网友评论