服务器端
start.sh
sudo /root/ngrok/bin/ngrokd -tlsKey=/root/ngrok/server.key -tlsCrt=/root/ngrok/server.crt -domain="lekeopen.com"
前台运行
/root/ngrok/bin/ngrokd -tlsKey=/root/ngrok/server.key -tlsCrt=/root/ngrok/server.crt -domain="ngrok.lekeopen.com" -httpAddr=":8080" -httpsAddr=":8081" -tunnelAddr=":4443"
后台运行
sudo nohup /root/ngrok/bin/ngrokd -tlsKey=/root/ngrok/server.key -tlsCrt=/root/ngrok/server.crt -domain="ngrok.lekeopen.com" &
客户端
前台运行
./ngrok -subdomain pub -proto=http -config=ngrok.cfg 80
后台运行
sudo nohup ./ngrok -subdomain pub -proto=http -config=ngrok.cfg 80