首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ubuntu 12.04中的ngrok安装

问ubuntu 12.04中的ngrok安装
EN

Ask Ubuntu用户
提问于 2015-11-27 09:01:22
回答 3查看 21.9K关注 0票数 5

由于在ubuntu中安装ngrok有困难,我去了https://ngrok.com/download并为ubuntu下载了它,但是它总是给出不允许我们在ubuntu中运行的二进制文件,谁能建议其他方式来安装它吗?

EN

回答 3

Ask Ubuntu用户

回答已采纳

发布于 2015-11-27 09:10:01

要安装32位版本,请执行以下操作:

代码语言:javascript
复制
wget https://dl.ngrok.com/ngrok_2.0.19_linux_386.zip
unzip ngrok_2.0.19_linux_386.zip

在那之后

./ngrok

你会看到这个,在我的32位系统上测试。

代码语言:javascript
复制
NAME:
   ngrok - tunnel local ports to public URLs and inspect traffic

DESCRIPTION:
    ngrok exposes local networked services behinds NATs and firewalls to the
    public internet over a secure tunnel. Share local websites, build/test
    webhook consumers and self-host personal services.
    Detailed help for each command is available with 'ngrok help <command>'.
    Open http://localhost:4040 for ngrok's web interface to inspect traffic.

EXAMPLES:
    ngrok http 80                    # secure public URL for port 80 web server
    ngrok http -subdomain=baz 8080   # port 8080 available at baz.ngrok.io
    ngrok http foo.dev:80            # tunnel to host:port instead of localhost
    ngrok tcp 22                     # tunnel arbitrary TCP traffic to port 22
    ngrok tls -hostname=foo.com 443  # TLS traffic for foo.com to port 443
    ngrok start foo bar baz          # start tunnels from the configuration file

VERSION:
   2.0.19

AUTHOR:
  inconshreveable - <alan@ngrok.com>

COMMANDS:
   authtoken    save authtoken to configuration file
   credits  prints author and licensing information
   http     start an HTTP tunnel
   start    start tunnels by name from the configuration file
   tcp      start a TCP tunnel
   test     test ngrok service end-to-end
   tls      start a TLS tunnel
   update   update to the latest version
   version  print the version string
   help     Shows a list of commands or help for one command
票数 6
EN

Ask Ubuntu用户

发布于 2016-04-23 06:05:47

它适用于较高版本,但我不确定大约12.04:

代码语言:javascript
复制
apt-get install ngrok-client
票数 4
EN

Ask Ubuntu用户

发布于 2017-11-21 03:19:31

我有一个类似的问题-运行Ubuntu16.04LTS (64位)。我遵循@ NGROK的指令,但无法让命令ngrok http 8080响应我应该如何阅读它。在四处阅读并观看了这 YouTube视频之后,我找到了我需要的东西。注意:该视频没有语音,但它确实明确指出在哪里安装解压缩的可执行文件,这是关键。

下载后,我在终端中从压缩文件所在的同一目录运行以下命令(在我的例子中,它位于我的主目录中):

代码语言:javascript
复制
unzip ngrok-stable-linux-amd64.zip

然后我找到了可执行文件"ngrok“,并运行了以下命令:

代码语言:javascript
复制
sudo mv ngrok /usr/local/bin/

完成这些步骤后,我能够运行ngrok http 8080并获得预期的结果(下面是我正在讨论的ngrok文档中的示例)。

代码语言:javascript
复制
Tunnel Status                 online
Version                       2.0/2.0
Web Interface                 http://127.0.0.1:4040
Forwarding                    http://92832de0.ngrok.io -> localhost:80
Forwarding                    https://92832de0.ngrok.io -> localhost:80

Connnections                  ttl     opn     rt1     rt5     p50     p90
                              0       0       0.00    0.00    0.00    0.00
票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/703078

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档