问答详情
源自:4-1 java公众号开发环境准备

请问出现这个是什么情况呢

F:\ngrok>ngrok 8080
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.1.2


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 ngrok to the latest version
   version      print the version string
   help         Shows a list of commands or help for one command


ERROR:  Unrecognized command: 8080


提问者:慕粉0959011288 2017-03-29 14:05

个回答

  • 厦港小镇
    2018-07-02 06:42:02

    ngrok http 8080 可以了

  • SdogX
    2018-05-25 10:44:02

    ngrok http 8080

  • 崔东玉
    2017-12-15 15:54:59

    怎么起动服务呢

  • 慕前端8689991
    2017-11-19 19:52:55

    这个好像不是服务没启动的问题吧  我确定我服务启动了 端口号是8080


  • LoveTech
    2017-03-29 20:49:46

    首先你需要开启本地的8080服务,然后输入ngrok http 8080即可成功。以我的80端口的Apache服务为例:

    http://img.mukewang.com/58dbacff0001ea6b07660485.jpg

    http://img.mukewang.com/58dbad000001544b09600766.jpg

    http://img.mukewang.com/58dbad020001699810230766.jpg

    http://img.mukewang.com/58dbad020001a01f13640766.jpg