从github获取最新版本的tar
https://github.com/ehang-io/nps/releases
mkdir nps
cp linux_amd64_server.tar.gz ../nps/
cd nps
tar vzxf linux_amd64_server.tar.gz
sudo ./nps install
上面的操作 ,nps回到 /etc 目录
vim /etc/nps/conf/nps.conf
修改配置,启动 nps
#web
web_ip 不要改
web_host 改成服务器外网的ip
httpsproxy方面的注释掉
#HTTP(S) proxy port, no startup if empty
#http_proxy_ip=0.0.0.0
#http_proxy_port=80
#https_proxy_port=443
#https_just_proxy=true
#default https certificate setting
#https_default_cert_file=conf/server.pem
#https_default_key_file=conf/server.key
服务器需要开放 客户端连接端口,web管理端口,开放几个端口 用于配置客户端映射
启动日志在 /var/log/nps.log
心得:
之前把 web_host 没有修改,直接修改的 web_ip, web管理的端口起不起来
必须按照上面的配置才能启动nps