mac安装ngrok 实现内网穿透 --- 2022-07-23

2022-07-23  本文已影响0人  一位先生_
  1. 首先要确保mac已经安装了brew, 因为我们是使用brew安装

  2. 访问地址:根据地址操作(https://ngrok.com/download

image.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 
image.png

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

image.png

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


image.png

说明成功,问题解决!

上一篇 下一篇

猜你喜欢

热点阅读