在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名

在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名:

首先在natapp官网下载对应的版本文件

官网地址:https://natapp.cn/#download在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名

 

在网页上配置端口号

在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名

 

 

然后在官网下载config.ini文件,下载地址:https://natapp.cn/article

在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名

下载好之后将文件放到服务器上,配置如下:

在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名

在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名

在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名

 

然后就可以在服务器启动:./natapp

在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名

 

但是这样xshell一关闭就会退出,

那么我们来弄个后台启动,但是后台启动时随机的域名看不到,下面我们来解决一下这个问题:

编写shell脚本

在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名

赋予脚本权限

在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名

 

运行:./natapp.sh

在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名

 

输出日志nohup.out

查看日志:tail -1000f nohup.out

随机域名如图:

在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名

在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名

进程存在。

输入:http://irytp8.natappfree.cc/  后台有个端口10086的tomcat在运行

在linux上使用natapp内网穿透和用免费的隧道的在后台运行时获取随机的natapp的随机域名