资源准备:一台公网IP的主机A,一台普通内网的主机B。(win或linux设备都可以)
n2n最新源码链接(有时打不开,等等再试)
参考git的源码的项目说明就可以实现supernode和edge部署
1.1 下载源码git clone https://github.com/ntop/n2n 1.2 进入源码目录n2n,依次执行下列命令./autogen.sh # 如果提示命令不在,需要安装apt install autoconf ./configure make make install # 安装完执行命令,检查安装是否正确 supernode -h edge -h1.3 在公网主机上运行supernode,监听1234端口
supernode -l



