# 二进制安装

> 下载发布包并安装 NPS 服务端或 NPC 客户端

---

LLMS 索引： [llms.txt](/llms.txt)

---

从项目发布页下载对应系统版本。服务端 (`nps`) 和客户端 (`npc`) 使用单独的压缩包。

**服务端**

> 首次启动时 `nps` 会在可执行文件同级目录自动生成 `conf/nps.conf`，并随机生成 `web_password`、`auth_key`、`auth_crypt_key`。Web 管理界面的登录密码请在 `conf/nps.conf` 或启动日志中查看。

Linux 或 macOS：

```shell
./nps -server
```

Windows：

```powershell
nps.exe -server
```

![服务端管理菜单](/image/new/server.png)

**客户端**

> 运行目录中没有 `conf/npc.conf` 时，客户端无参数启动会进入交互菜单；存在该文件时会直接按配置文件运行。需要强制使用其他配置文件时传入 `-config=/实际路径/npc.conf`。

Linux 或 macOS：

```shell
./npc
```

Windows：

```powershell
npc.exe
```

![客户端管理菜单](/image/new/cmd.png)

**客户端（GUI）**

> 通过 Web 管理界面的【快捷连接码】，或手动填写 `-server`、`-vkey` 等参数配置客户端。

![GUI 客户端](/image/new/gui.png)
