在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名
在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名:
首先在natapp官网下载对应的版本文件
官网地址:https://natapp.cn/#download
在网页上配置端口号
然后在官网下载config.ini文件,下载地址:https://natapp.cn/article
下载好之后将文件放到服务器上,配置如下:
然后就可以在服务器启动:./natapp
但是这样xshell一关闭就会退出,
那么我们来弄个后台启动,但是后台启动时随机的域名看不到,下面我们来解决一下这个问题:
编写shell脚本
赋予脚本权限
运行:./natapp.sh
输出日志nohup.out
查看日志:tail -1000f nohup.out
随机域名如图:
进程存在。