3

我最近在我的 ubuntu 上安装了 ngrok 1.6 版。运行命令时 ngrok http 80

我收到以下错误。

You may only specify one port to tunnel to on the command line, got 2: [http 80]

请告诉我这个问题的解决方案。

4

4 回答 4

4

您需要使用相对路径,例如。

./ngrok http 80

代替

ngrok http 80

但对我来说,它表明了这一点:

./ngrok: file or directory doesn't exist
于 2017-11-11T01:33:36.037 回答
3

在 ngrok 1.6 中没有额外的参数 (http) 可以传递,对 ngrok 1.6 的正确调用应该是ngrok 80. 但是,我建议升级,ngrok 1.6 相当旧(例如,我正在运行 2.1.3)。

于 2016-08-16T15:24:22.817 回答
3

如果您面临以下错误:-

You may only specify one port to tunnel to on the command line, got 2: [http 80]

比你需要使用这个: - ./ngrok http 80 而不是 ngrok http 80

于 2017-08-28T12:55:13.010 回答
0

您需要从https://ngrok.com/download下载 zip 文件 解压缩,您将获得一个名为 ngrok 的文件,在命令行中转到该目录并运行./ngrok http 80

于 2017-11-20T09:09:32.557 回答