NPS项目地址:https://github.com/ehang-io/nps
服务端操作
# 下载服务器端包
wget https://github.com/ehang-io/nps/releases/download/v0.26.10/linux_amd64_server.tar.gz
# 解压
tar -zxvf linux_amd64_server.tar.gz
# 安装
./nps install
# 服务端启动
sudo nps start
修改NPS后台账号密码
#编辑配置文件
vi /etc/nps/conf/nps.conf
#重启NPS使配置生效
nps restart
客户端操作
下载
wget https://github.com/ehang-io/nps/releases/download/v0.26.10/linux_amd64_client.tar.gz
tar -zxvf linux_amd64_client.tar.gz
运行并挂在后台
./npc -server=0.0.0.0:8024 -vkey=6bc8ktofi42up0ix > log &
将NPC注册到系统服务(开机启动、守护进程)
运行的时候加上install
对于linux、darwin
- 注册:
sudo ./npc install 其他参数(例如-server=xx -vkey=xx或者-config=xxx)
- 启动:
sudo npc start
- 停止:
sudo npc stop
- 如果需要更换命令内容需要先卸载
./npc uninstall
,再重新注册
对于windows,使用管理员身份运行cmd
- 注册:
npc.exe install 其他参数(例如-server=xx -vkey=xx或者-config=xxx)
- 启动:
npc.exe start
- 停止:
npc.exe stop
- 如果需要更换命令内容需要先卸载
npc.exe uninstall
,再重新注册