nps简单配置(linux环境)

1.下载并配置服务端。

#下载文件,其他版本可以到https://github.com/ehang-io/nps/releases
wget https://github.com/ehang-io/nps/releases/download/v0.26.9/linux_amd64_server.tar.gz

#解压文件
tar -zxvf linux_amd64_server.tar.gz

2.设置配置文件。

#进入到配置文件目录
cd conf
#打开配置文件
vi nps.conf

可以修改里面的管理网站端口,密码等。

3.安装nps

#返回到nps程序目录
cd ..
#安装nps
./nps install
#启动nps
#其他命令 nps start|stop|restart|uninstall|update or nps-update update
nps start

4.客户端下载安装。

#下载客户端 其他版本见https://github.com/ehang-io/nps/releases
wget https://github.com/ehang-io/nps/releases/download/v0.26.9/linux_arm_v5_client.tar.gz
#解压
tar -zxvf linux_arm_v5_client.tar.gz

修改配置文件:

#配置文件再conf/npc.conf
#内容如下:
[common]
server_addr=xxxxx:8024
conn_type=tcp
vkey=123
compress=true
crypt=true
rate_limit=10000
flow_limit=100
remark=test
max_conn=10
#pprof_addr=0.0.0.0:9999

启动程序:

cd ..
./npc

如果需要做成服务,请参照官网给出配置

https://ehang-io.github.io/nps/#/use?id=%e6%b3%a8%e5%86%8c%e5%88%b0%e7%b3%bb%e7%bb%9f%e6%9c%8d%e5%8a%a1%e5%bc%80%e6%9c%ba%e5%90%af%e5%8a%a8%e3%80%81%e5%ae%88%e6%8a%a4%e8%bf%9b%e7%a8%8b

原文地址:https://www.cnblogs.com/LittleJin/p/14434154.html