80后的细娃儿

开机启动ngrok

自动启动
vi /etc/rc.d/rc.local

/usr/bin/screen -dmS ngrok /home/ngrok/ngrokd -tlsKey=/home/ngrok/server.key -tlsCrt=/home/ngrok/server.crt -domain=”xxx.com” -httpAddr=”:80″ -httpsAddr=”:443″ -tunnelAddr=”:4443″

重启之后看客户端能否连接上

点赞