本机固定域名和反向代理localtuner的使用

参考此篇文章 ,使用localtuner 

https://localtunnel.github.io/www/

1. 安装

Quickstart
Install Localtunnel globally (requires NodeJS) to make it accessible anywhere:

npm install -g localtunnel
Start a webserver on some local port (eg http://localhost:8000) and use the command line interface to request a tunnel to your local server:

 

lt –port 8000
You will receive a url, for example https://gqgh.localtunnel.me, that you can share with anyone for as long as your local instance of lt remains active. Any requests will be routed to your local service at the specified port.

使用固定子域名的方式

zhai-macbook-pro:~ zhai$ lt –port 80 –subdomain zhai
your url is: https://zhai.localtunnel.me

Share your thoughts