【问题标题】:Error related to ngrok与 ngrok 相关的错误
【发布时间】: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]

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

【问题讨论】:

    标签: linux apache http ngrok


    【解决方案1】:

    需要使用相对路径,比如。

    ./ngrok http 80
    

    而不是

    ngrok http 80
    

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

    ./ngrok: file or directory doesn't exist
    

    【讨论】:

    • 我还收到“./ngrok: 文件或目录不存在”错误。但是后来我尝试了主目录中的命令并且它有效!
    【解决方案2】:

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

    【讨论】:

      【解决方案3】:

      如果您遇到以下错误:-

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

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

      【讨论】:

        【解决方案4】:

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

        【讨论】:

          猜你喜欢
          • 2017-03-28
          • 2016-07-04
          • 2020-08-04
          • 2018-08-14
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2012-03-02
          • 2018-02-05
          相关资源
          最近更新 更多