1、安装 yum install screen
2、screen -S ngrok( -S后面的名字可以随便取)
3、运行ngrok启动命令【./bin/ngrokd -tlsKey=server.key -tlsCrt=server.crt -domain="xx.xx.xx.xx" -httpAddr=":80" -httpsAddr=":443" 】
4、直接关掉ssh窗口
4、关闭ps -ef|grep screen 然后用kill
参考文献
https://blog.csdn.net/weixin_45775077/article/details/103439073
https://blog.csdn.net/k_young1997/article/details/104425743
遇到这个问题
Can't load /root/.rnd into RNG
140496635077056:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/root/.rnd
解决办法
cd /root
openssl rand -writerand .rnd