与ngrok相关的错误

时间:2016-08-16 15:19:28

标签: linux apache http ngrok

我最近在我的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 个答案:

答案 0 :(得分:3)

如果您遇到以下错误: -

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

您需要使用此功能: - ./ngrok http 80 而不是 ngrok http 80

答案 1 :(得分:2)

在ngrok 1.6中没有要传递的额外参数(http),ngrok 1.6的正确调用将是ngrok 80。但是,我建议升级,ngrok 1.6相当老(例如我运行2.1.3)。

答案 2 :(得分:2)

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

./ngrok http 80

而不是

ngrok http 80

但对我而言,它表明了这一点:

./ngrok: file or directory doesn't exist

答案 3 :(得分:0)

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