【发布时间】:2016-12-23 01:12:28
【问题描述】:
我最近在我的 ubuntu 上安装了 ngrok 1.6 版。运行命令时
ngrok http 80
我收到以下错误。
You may only specify one port to tunnel to on the command line, got 2: [http 80]
请告诉我这个问题的解决方案。
【问题讨论】:
我最近在我的 ubuntu 上安装了 ngrok 1.6 版。运行命令时
ngrok http 80
我收到以下错误。
You may only specify one port to tunnel to on the command line, got 2: [http 80]
请告诉我这个问题的解决方案。
【问题讨论】:
需要使用相对路径,比如。
./ngrok http 80
而不是
ngrok http 80
但对我来说,它表明了这一点:
./ngrok: file or directory doesn't exist
【讨论】:
在 ngrok 1.6 中没有要传递的额外参数 (http),ngrok 1.6 的正确调用将是 ngrok 80。但是,我建议升级,ngrok 1.6 相当旧(例如,我正在运行 2.1.3)。
【讨论】:
如果您遇到以下错误:-
You may only specify one port to tunnel to on the command line, got 2: [http 80]
你需要使用这个:- ./ngrok http 80 而不是 ngrok http 80
【讨论】:
你需要从https://ngrok.com/download下载zip文件
解压,你会得到一个名为 ngrok 的文件,在命令行中进入该目录并运行./ngrok http 80
【讨论】: