V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
liiihhhh
V2EX  ›  问与答

自建 ngrok 服务器的问题,

  •  
  •   liiihhhh · 2016-10-17 12:43:16 +08:00 · 2160 次点击
    这是一个创建于 2742 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我添加两条 A 记录: ngrok.xxx.com 和*.ngrok.xxx.com.
    但是现在 xxx.com 所指向的 ip 80 端口已经有了博客, 能让 ngrok 制定端口吗
    4 条回复    2016-10-17 16:37:34 +08:00
    letitbesqzr
        1
    letitbesqzr  
       2016-10-17 13:07:01 +08:00   ❤️ 1
    可以指定 -httpAddr=":8081" -httpsAddr=":8082"

    不建议用 ngrok , github 上 :

    DO NOT RUN THIS VERSION OF NGROK (1.X) IN PRODUCTION. Both the client and server are known to have serious reliability issues including memory and file descriptor leaks as well as crashes. There is also no HA story as the server is a SPOF

    然而 ngrok 2.0 并没有开源..

    推荐: https://github.com/fatedier/frp ngrok 的功能都能实现,并且更强大
    line
        2
    line  
       2016-10-17 13:22:23 +08:00
    我的 ngrok 崩溃过。 打算换其它的试下。
    hteen
        3
    hteen  
       2016-10-17 13:29:24 +08:00
    nginx 反向代理解决即可,我服务器也是这样
    tonghuashuai
        4
    tonghuashuai  
       2016-10-17 16:37:34 +08:00
    貌似只有 ssh 可以指定远程端口, http 不可以……
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2634 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 11:28 · PVG 19:28 · LAX 04:28 · JFK 07:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.