# NPS客户端 NPC使用记录 NPS客户端 NPC使用记录 ## NPC使用 使用的Client版本linux_386_client.tar.gz 曾经使用arm的版本由于处理器不同出现错误,最稳妥的办法是编译运行。 ## 步骤 1. 建立客户端,获取vkey 2. 创建TCP隧道 3. 下载对应版本的Client 4. 修改conf下的npc.conf 5. cd进入npc的目录,执行./npc 6. 根据测试结果进行修改,配置 7. 没有问题后使用nohup让npc在后台运行 8. 使用exit退出ssh 例:使用TCP的npc.conf ``` [common] server_addr=8.8.8.8:8024 conn_type=tcp vkey=123 auto_reconnection=true max_conn=1000 flow_limit=1000 rate_limit=1000 basic_username=11 basic_password=3 web_username=user web_password=1234 crypt=true compress=true #pprof_addr=0.0.0.0:9999 disconnect_timeout=60 [tcp] mode=tcp target_addr=127.0.0.1:8888 server_port=8050 ``` 例:nohup指令 ``` nohup ./npc >npc.log 2>&1 & ```