本教程中使用的系统为CentOS 7 64 bit
更新一下系统,安装一些必要组件
yum update
yum upgrade
yum install subversion gcc-c++ openssl-devel
yum install git
git clone https://github.com/meyerd/n2n.git
cd n2n/n2n_v2
在执行命令make编译n2n时出现这这些提示
解决办法
1、wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
2、tar zxvf ncurses-5.6.tar.gz
3、cd ncurses-5.6
3、 ./configure -prefix=/usr/local -with-shared-without-debug
4、make
5、make install
cmake ./
yum install cmake -y
cmake ./
sudo make install
启动n2n服务器
supernode -l 12345
这个12345就是客户端要配置的端口