ngrok 设置

内网:

  1. 得到ngrok程序。
  2. 建立ngrok.cfg文件,写入下面内容
  3. 建立ngrok_allstack_net.sh文件,写入下面内容

    并chmod a+x ngrok_allstack_net.sh
  4. 打开/etc/rc.local文件写入一行,使得ngrok程序能开机运行:

     

外网:

  1. 建立ngrokd.sh,写入以下内容:
  2. 打开/etc/rc.local加入一行:

    重启完成。

ngrok git: https://github.com/inconshreveable/ngrok

参考:https://blog.csdn.net/zhangguo5/article/details/77848658?utm_source=5ibc.net&utm_medium=referral
最后记录一下网上免费的ngrok服务器:

https://www.ngrok.cc            sunny: python sunny.py –clientid=xxx
http://ngrok.ciqiuwl.cn/

http://www.tunnelnat.com/

Nginx+Ngrok实现80端口服务器+80端口内网穿透: https://blog.csdn.net/muumlover/article/details/53075200