发表于 2019-1-26 12:22:02

n2n***系统搭建

SuperNode配置:
svn co https://svn.ntop.org/svn/ntop/trunk/n2n
cd n2n/n2n_v1
make
make PREFIX=/opt/n2n install
cd /etc/init.d/
wget http://svn.ichiayi.com/opensvn/opentrysoft/trysrvtool/n2n***d
chmod a+x n2n***d
chkconfig --add n2n***d
cd /etc
wget http://svn.ichiayi.com/opensvn/opentrysoft/trysrvtool/n2n***d.conf
vi n2n***d.conf# General configuration
# n2n IP Address
# DHCP Client Enable -> on; Disable -> off
n2n_DHCP='off'
# If DHCP enabled the below IP will be ignored.
n2n_IP='10.9.9.1'
# n2n community name   
n2n_cname='n2nrdtest04'//组名
# Encryption key (ASCII)
n2n_pass='n2nrdtest04' //密码
# Supermode Host:
# IP:Port
SNODE_Host='140.92.143.17:7654' //SUPER NDOE监听IP:PORT
# Supernode Mode: Enable -> on; Disable -> off
SNODE='on'
SNODE_PORT='7654'
# Log file
LOGS='/var/log/n2n***d.log' //日志文件路径
service n2n***d start   启动服务  NODE设置:

svn co https://svn.ntop.org/svn/ntop/trunk/n2n
cd n2n/n2n_v1
make
make PREFIX=/opt/n2n install
cd /etc/init.d/
wget http://svn.ichiayi.com/opensvn/opentrysoft/trysrvtool/n2n***d
chmod a+x n2n***d
chkconfig --add n2n***d
cd /etc
wget http://svn.ichiayi.com/opensvn/opentrysoft/trysrvtool/n2n***d.conf
vi n2n***d.conf# General configuration
# n2n IP Address
# DHCP Client Enable -> on; Disable -> off
n2n_DHCP='off'
# If DHCP enabled the below IP will be ignored.
n2n_IP='10.9.9.2'         //指定的私有IP
# n2n community name
n2n_cname='n2nrdtest04'   //组名
# Encryption key (ASCII)
n2n_pass='n2nrdtest04'    //密码
# Supermode Host:
# IP:Port
SNODE_Host='140.92.143.17:7654' 指定用于连接SUPER NODE的IP和端口
# Supernode Mode: Enable -> on; Disable -> off
SNODE='off'
SNODE_PORT='7654'
# Log file
LOGS='/var/log/n2n***d.log'
service n2n***d start

[*]  

  




页: [1]
查看完整版本: n2n***系统搭建