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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM