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
如果需要做成服務,請參照官網給出配置