由于在ubuntu中安装ngrok有困难,我去了https://ngrok.com/download并为ubuntu下载了它,但是它总是给出不允许我们在ubuntu中运行的二进制文件,谁能建议其他方式来安装它吗?
发布于 2015-11-27 09:10:01
要安装32位版本,请执行以下操作:
wget https://dl.ngrok.com/ngrok_2.0.19_linux_386.zip
unzip ngrok_2.0.19_linux_386.zip在那之后
./ngrok
你会看到这个,在我的32位系统上测试。
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发布于 2016-04-23 06:05:47
它适用于较高版本,但我不确定大约12.04:
apt-get install ngrok-client发布于 2017-11-21 03:19:31
我有一个类似的问题-运行Ubuntu16.04LTS (64位)。我遵循@ NGROK的指令,但无法让命令ngrok http 8080响应我应该如何阅读它。在四处阅读并观看了这 YouTube视频之后,我找到了我需要的东西。注意:该视频没有语音,但它确实明确指出在哪里安装解压缩的可执行文件,这是关键。
下载后,我在终端中从压缩文件所在的同一目录运行以下命令(在我的例子中,它位于我的主目录中):
unzip ngrok-stable-linux-amd64.zip然后我找到了可执行文件"ngrok“,并运行了以下命令:
sudo mv ngrok /usr/local/bin/完成这些步骤后,我能够运行ngrok http 8080并获得预期的结果(下面是我正在讨论的ngrok文档中的示例)。
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.00https://askubuntu.com/questions/703078
复制相似问题