mac安装ngrok 实现内网穿透 --- 2022-07-23
2022-07-23 本文已影响0人
一位先生_
-
首先要确保mac已经安装了brew, 因为我们是使用brew安装
-
访问地址:根据地址操作(https://ngrok.com/download)

注意: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

然后打开:~/.ngrok2/ngrok.yml
添加你的:authtoken

保存退出,然后执行:ngrok http 80 (端口号可自定义)
运行后出现:

说明成功,问题解决!