在去年的一次黑客最喜欢的工具投票中,ngrok位列第五

#ngrok

ngrok is a reverse proxy that creates a secure tunnel from a public endpoint to a locally running web service. ngrok captures and analyzes all traffic over the tunnel for later inspection and replay.

关于ngrok我此前写过两篇文章:

#查看数据库信息 ###将mongo映射出去

./ngrok -config ./ngrok.cfg -proto=tcp 27017

ngrok会将本地端口映射到外网,就像这样:

edx_ngrok0.png

从中得到外网地址:xxx.xxx.xxx

在本地输入:mongo xxx.xxx.xxx

你就可以访问啦:

edx_ngrok1.png

或是使用rebomongo,不需要做任何配置

edx_ngrok2.png

###将mysql映射出去 ./ngrok -config ./ngrok.cfg -proto=tcp 3306

mycli -h xxx.xxx.xxx -P xxx -u root

edx_ngrok3.png

###run devstack

1
2
sudo /edx/bin/python.edxapp /edx/app/edxapp/edx-platform/manage.py lms runserver 0.0.0.0:5000 --settings devstack
./ngrok -config ./ngrok.cfg 5000

以上两条命令使用不同的tmux窗口打开

###run IPython notebook 参考use ipython notebook in edx dogwood