Github地址:https://github.com/cnlh/nps
直接下载安装,装的新版是0.26.3,使用64 位系统 ,其他相应修改,如树莓派等,服务端找 server,客户端找 client。
wget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_amd64_server.tar.gz && tar zxvf linux_amd64_server.tar.gz
freebsd_386_client.tar.gzfreebsd_386_server.tar.gzfreebsd_amd64_client.tar.gzfreebsd_amd64_server.tar.gzfreebsd_arm_client.tar.gzfreebsd_arm_server.tar.gzlinux_386_client.tar.gzlinux_386_server.tar.gzlinux_amd64_client.tar.gzlinux_amd64_server.tar.gzlinux_arm64_client.tar.gzlinux_arm64_server.tar.gzlinux_arm_client.tar.gzlinux_arm_server.tar.gzlinux_mips64le_client.tar.gzlinux_mips64le_server.tar.gzlinux_mips64_client.tar.gzlinux_mips64_server.tar.gzlinux_mipsle_client.tar.gzlinux_mipsle_server.tar.gzlinux_mips_client.tar.gzlinux_mips_server.tar.gzmacos_client.tar.gzmacos_server.tar.gzwin_386_client.tar.gzwin_386_server.tar.gzwin_amd64_client.tar.gzwin_amd64_server.tar.gz
所有命令 0.26.3
wget https://github.com/cnlh/nps/releases/download/v0.26.3/freebsd_386_client.tar.gz && tar zxvf freebsd_386_client.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/freebsd_386_server.tar.gz && tar zxvf freebsd_386_server.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/freebsd_amd64_client.tar.gz && tar zxvf freebsd_amd64_client.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/freebsd_amd64_server.tar.gz && tar zxvf freebsd_amd64_server.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/freebsd_arm_client.tar.gz && tar zxvf freebsd_arm_client.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/freebsd_arm_server.tar.gz && tar zxvf freebsd_arm_server.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_386_client.tar.gz && tar zxvf linux_386_client.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_386_server.tar.gz && tar zxvf linux_386_server.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_amd64_client.tar.gz && tar zxvf linux_amd64_client.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_amd64_server.tar.gz && tar zxvf linux_amd64_server.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_arm64_client.tar.gz && tar zxvf linux_arm64_client.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_arm64_server.tar.gz && tar zxvf linux_arm64_server.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_arm_client.tar.gz && tar zxvf linux_arm_client.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_arm_server.tar.gz && tar zxvf linux_arm_server.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_mips64le_client.tar.gz && tar zxvf linux_mips64le_client.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_mips64le_server.tar.gz && tar zxvf linux_mips64le_server.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_mips64_client.tar.gz && tar zxvf linux_mips64_client.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_mips64_server.tar.gz && tar zxvf linux_mips64_server.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_mipsle_client.tar.gz && tar zxvf linux_mipsle_client.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_mipsle_server.tar.gz linux_mipsle_server.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_mips_client.tar.gz && tar zxvf linux_mips_client.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/linux_mips_server.tar.gz && tar zxvf linux_mips_server.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/macos_client.tar.gz && tar zxvf macos_client.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/macos_server.tar.gz && tar zxvf macos_server.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/win_386_client.tar.gz && tar zxvf win_386_client.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/win_386_server.tar.gz && tar zxvf win_386_server.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/win_amd64_client.tar.gz && tar zxvf win_amd64_client.tar.gzwget https://github.com/cnlh/nps/releases/download/v0.26.3/win_amd64_server.tar.gz && tar zxvf win_amd64_server.tar.gz
上面中间因为插件的文件显示为 amp,实际就两个&&符号。
cd nps
./nps install
直接安装到系统
会看到日志,复制的一些配置文件和可用的操作命令
copy file ::/root/nps/conf/app.conf to /etc/nps/conf/app.conf
copy file ::/root/nps/conf/clients.csv to /etc/nps/conf/clients.csv
copy file ::/root/nps/conf/hosts.csv to /etc/nps/conf/hosts.csv
copy file ::/root/nps/conf/tasks.csv to /etc/nps/conf/tasks.csv
Executable files have been copied to /usr/bin/nps
install ok!
Static files and configuration files in the current directory will be useless
安装以后的配置文件在 /etc/nps
/etc/nps/conf 配置文件 /etc/nps/web网页界面
可用的命令 nps test|start|stop|restart|status
其他使用按 readme帮助文档照着配置就可以了
与 nginx,tenginx,apache 搭配使用,需要配置不同端口
客户端启动
无配置文件
./npc -server=ip:port -vkey=web界面中显示的密钥
配置文件模式
此模式使用nps的公钥或者客户端私钥验证,各种配置在客户端完成,同时服务端web也可以进行管理
./npc -config=npc配置文件路径
以上是不是太麻烦了。。。
当然用一键配置命令啊
下载地址: https://github.com/cnlh/nps/releases教程地址: https://github.com/cnlh/nps
nps 图文教程
服务端一键安装脚本:bash <(curl -L -s https://opt.cn2qq.com/opt-script/nps.sh)