centos7安装nps

nps官方文档

https://ehang-io.github.io/nps/

1、下载

wget https://github.com/ehang-io/nps/releases/download/v0.26.10/linux_amd64_server.tar.gz

客户端linux的话    wget https://github.com/ehang-io/nps/releases/download/v0.26.10/linux_amd64_client.tar.gz

客户端windows的话  https://github.com/ehang-io/nps/releases/download/v0.26.10/linux_amd64_client.tar.gz

2、解压

tar -xzvf  xxx.tar.gz

3、安装

sudo ./nps install

windows的话  nps.exe install

4、运行(记得修改配置和修复漏洞,参考6)

sudo nps start

5、设置开机自启

  vim /etc/systemd/system/nps.service 如下

[Unit]
#服务描述
Description=npsServer
[Service]
User=root
WorkingDirectory=/etc/nps/
LimitNOFILE=4096
PIDFile=/var/run/nps/server.pid
#服务命令
ExecStart=/usr/bin/nps
Restart=on-failure
StartLimitInterval=600
[Install]
#运行级别下服务安装的相关设置,可设置为多用户,即系统运行级别为3
WantedBy=multi-user.target

#常用命令
#systemctl daemon-reload #服务创建
#systemctl start nps #启动服务
#systemctl stop nps #停止运行客户端
#systemctl enable nps #设置为开机启动
#systemctl disable nps #禁止开机启动
#reboot #重启服务器检验

 

6、漏洞修复

服务端的配置文件里web部分配置  /etc/nps/conf/nps.conf

首先、auth_key放开注释并随意输入字符

其次、同时注释掉auth_crypt_key

最后、自己个性化修改一下自己的配置

#http_proxy_port=80
#1、域名代理http代理监听端口#80

#https_proxy_port=443
#2、域名代理https代理监听端口#443

#bridge_port=8024
#3、服务端客户端通信端口#8024

#web_port = 8080
#4、web管理端口8080

#web_base_url=
#5、web管理主路径,用于将web管理置于代理子路径后面

web_username=adminxxxxx
web_password=123xxxx

#67改账号密码

posted @   svvkcn  阅读(639)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示