---
title: "选择安装方式 | Wantastic Docs"
description: "在表格中找到你的设备，复制一条命令即可。大多数设备 2 分钟即可完成安装：安装、扫描二维码、点击 Claim Device。"
url: "https://wantastic.app/zh/docs/install-overview"
category: "Install wantasticd"
reading_time: "3 分钟"
---

# 选择安装方式

在表格中找到你的设备，复制一条命令即可。大多数设备 2 分钟即可完成安装：安装、扫描二维码、点击 Claim Device。

> **Outcome:** 你知道该在设备上运行哪条命令，以及该打开哪篇指南。

## Before you start

- 一个 Wantastic 控制台账户：https://console.wantastic.app。
- 要连接的设备上的终端（手机则需要 WireGuard 应用）。
- 设备可以访问互联网。

## 你的设备是哪种？

在表格中找到你的设备。运行中间一列的命令，然后打开对应指南查看详情。如果有两行都匹配，请使用更具体的那一行。

| 你的设备 | 运行什么 | 指南 |
| --- | --- | --- |
| Ubuntu、Debian、Linux Mint、Proxmox | curl -fsSL https://get.wantastic.app/install.sh \| sudo sh; sudo wantasticd genkey | 在 Debian 和 Ubuntu 上安装 |
| RHEL、Rocky、AlmaLinux、CentOS Stream、Fedora | curl -fsSL https://get.wantastic.app/install.sh \| sudo sh; sudo wantasticd genkey | 在 RHEL、Rocky、Alma 和 Fedora 上安装 |
| Arch Linux、Manjaro、EndeavourOS | curl -fsSL https://get.wantastic.app/install.sh \| sudo sh; sudo wantasticd genkey | 在 Arch Linux 上安装 |
| Raspberry Pi（Pi 2 或更新型号、Zero 2 W） | curl -fsSL https://get.wantastic.app/install.sh \| sudo sh; sudo wantasticd genkey | 在 Raspberry Pi 上安装 |
| Mac（Apple 芯片或 Intel） | curl -fsSL https://get.wantastic.app/install.sh \| sudo sh; sudo wantasticd genkey | 在 macOS 上安装 |
| Windows 10、Windows 11、Windows Server | 在 PowerShell（管理员）中运行一行命令，然后在浏览器中批准 | 在 Windows 上安装 |
| OpenWrt 路由器（GL.iNet、TP-Link、小米、x86） | opkg update && opkg install kmod-tun ca-bundle; wget -qO- https://get.wantastic.app/install.sh \| sh; wantasticd genkey | 在 OpenWrt 上安装 |
| Alpine Linux | wget -qO- https://get.wantastic.app/install.sh \| sh; wantasticd genkey | 在 Alpine Linux 上安装 |
| MIPS 路由器或开发板（MT7621、ath79、Octeon） | 先检查 CPU 类型，再安装 | 在 MIPS 路由器上安装 |
| Quectel RM520N-GL 及其他 Qualcomm SDX 模组 | adb shell，然后运行：wget -qO- https://get.wantastic.app/install.sh \| sh; wantasticd genkey | 在 Quectel RM520N-GL 上安装 |
| BusyBox 或其他精简固件 | wget -qO- https://get.wantastic.app/install.sh \| sh; wantasticd genkey | 在 BusyBox / 嵌入式 Linux 上安装 |
| Docker 容器 | 构建一个小镜像，然后在其中运行 genkey | 在 Docker 中运行（社区方案） |
| 其他 Linux CPU 架构、离线机器 | 下载 tarball，然后运行 genkey | 手动安装 tarball |
| Android、iPhone、iPad | WireGuard 应用 + QR Code 选项卡 | Android 和 iOS（WireGuard 应用） |
| MikroTik RouterOS 7.1 或更高版本 | Add Device → MikroTik → Copy → 粘贴到 Terminal | 连接 MikroTik 路由器 |

> **Tip:** 以普通用户身份操作时使用 sudo。如果已经是 root（路由器和小型设备），请使用 wget 命令。

## 快速安装的工作原理

在 Linux、macOS、路由器和小型设备上，安装步骤都相同，无需令牌。

1. 运行表格中的命令。它会安装 wantasticd，然后打印 Claim URL 和二维码。
2. 用手机扫描二维码，或打开 Claim URL，登录控制台。
3. 点击 Claim Device。终端打印 "Device claimed"。
4. 按 Ctrl+C，并重启一次服务（指南中给出了命令）。设备显示为 Online。

*安装并认领: genkey 打印 Claim URL 和二维码后进入等待。你在控制台中点击 Claim Device 后，它会打印 "Device claimed"。然后按 Ctrl+C 并重启服务。*

```
$ $ curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
…
Skipping login. Run 'wantasticd login' to authenticate.
…
Generated device claim key: /etc/wantastic/device-claim-key.json
Public key: Vd3hK1oQ7mR2sT9uW4xY6zA8bC0dE2fG4hJ6kL8mN0P=
Server URL: https://console.wantastic.app
Claim URL: https://console.wantastic.app/#desktop?claim_public_key=Vd3hK1oQ…%3D&wantastic_server=https%3A%2F%2Fconsole.wantastic.app

█▀▀▀▀▀█ ▄▀▄ ▀█▄ █▀▀▀▀▀█
█ ███ █ ▀█▄▀▄█ █ ███ █
█ ▀▀▀ █ ▄▀█ ▀▄ █ ▀▀▀ █
▀▀▀▀▀▀▀ ▀ ▀ █ ▀ ▀▀▀▀▀▀▀
▀█▄▀▄▀▀█▀▄█▀▄▀▀▄█▀▄▀█▄
█▀▀▀▀▀█ █▄▀▄▀█ ▀▄█ ▄▀
▀▀▀▀▀▀▀ ▀▀ ▀▀▀ ▀▀▀ ▀▀▀

2026/10/29 09:14:03 Waiting for claim. Press Ctrl+C to stop.
2026/10/29 09:15:12 Device claimed. Configuration saved to /etc/wantastic/config.conf
^C
$ $ sudo systemctl restart wantasticd
```

*Console: Claim Wantastic Device。Claim URL 和二维码会自动填入密钥，你只需点击 Claim Device。*

1. Claim public key 已自动填写
2. Wantastic server 保持默认即可
3. 点击 Claim Device

> **Operational note:** 在 Windows 上，以管理员身份打开 PowerShell，粘贴 irm https://get.wantastic.app/install.ps1 | iex，然后在浏览器中批准设备（参见在 Windows 上安装）。手机和 MikroTik 路由器完全不使用 wantasticd。

## 要安装大量设备？请使用令牌

令牌可让脚本安装设备，无需有人扫描二维码。创建一次即可在整个部署中重复使用。

1. 在控制台中打开 Account → Secrets。
2. 点击 + New Secret，输入名称，然后点击 Generate。
3. 复制该密钥。它就是下方命令中的 <TOKEN>。

令牌安装（Linux 和 macOS）:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh -s -- --token <TOKEN>
```

*Console: Account → Secrets → + New Secret。密钥的值就是令牌。*

1. 打开 Secrets 选项卡
2. 点击 + New Secret
3. 为其命名
4. 点击 Generate
5. 复制新密钥

> **Warning:** 在令牌过期之前，任何持有它的人都能向你的账户添加设备。不要将其粘贴到工单或公开场合。部署完成后请删除它。

## 发布矩阵（全部 18 个归档文件）

仅手动安装时才需要此内容。当前版本为 v1.0.54+377f3c0。所有归档文件均发布在 https://get.wantastic.app/v1.0.54/ 和 /latest/ 下。安装程序会自动为你选择合适的版本。

下载 URL 格式:

```bash
# Unix
https://get.wantastic.app/<TAG>/wantasticd-<os>-<arch>.tar.gz
# Windows
https://get.wantastic.app/<TAG>/wantasticd-windows-<arch>.zip
# Current tag (strip the +sha part)
curl -fsSL https://get.wantastic.app/latest
```

| 归档文件 | uname -m（由 install.sh 自动检测） | 备注 |
| --- | --- | --- |
| wantasticd-linux-amd64.tar.gz | x86_64 | 大多数 PC、服务器、虚拟机 |
| wantasticd-linux-arm64.tar.gz | aarch64, arm64 | 运行 64 位系统的 Pi 3/4/5、ARM 服务器 |
| wantasticd-linux-arm.tar.gz | armv7*, armv6* | 为 ARMv7 构建。ARMv6（Pi Zero/1）也映射到此，但很可能无法运行 |
| wantasticd-linux-386.tar.gz | i386, i686 | 32 位 x86 |
| wantasticd-linux-mips.tar.gz | mips | 大端 MIPS，硬浮点 |
| wantasticd-linux-mipsle.tar.gz | mipsle, mipsel | 小端 MIPS（MT7621 等），硬浮点 |
| wantasticd-linux-mips64.tar.gz | mips64 | 大端 MIPS64 |
| wantasticd-linux-mips64le.tar.gz | mips64el | 小端 MIPS64 |
| wantasticd-linux-riscv64.tar.gz | riscv64 | RISC-V 64 位 |
| wantasticd-linux-ppc64le.tar.gz | ppc64le | POWER 小端 |
| wantasticd-linux-ppc64.tar.gz | 未映射 | 仅支持手动安装 |
| wantasticd-linux-s390x.tar.gz | 未映射 | 仅支持手动安装 |
| wantasticd-linux-loong64.tar.gz | 未映射 | 仅支持手动安装 |
| wantasticd-darwin-amd64.tar.gz | x86_64 | Intel Mac；包含菜单栏应用 |
| wantasticd-darwin-arm64.tar.gz | arm64（在 Rosetta 下也可为 x86_64） | Apple 芯片；包含菜单栏应用 |
| wantasticd-windows-amd64.zip | PROCESSOR_ARCHITECTURE | 64 位 Windows；包含托盘程序 |
| wantasticd-windows-arm64.zip | PROCESSOR_ARCHITECTURE = ARM64 | ARM 版 Windows |
| wantasticd-windows-386.zip | 无 WOW64 的 x86 | 32 位 Windows |

> **Operational note:** 没有 Android、iOS 或 BSD 版本，也没有 deb、rpm、AUR 或 Homebrew 软件包。安装程序会直接下载归档文件。

## Verify the result

- 你已在表格中找到你的设备。
- 你已打开对应的安装指南。

## Common issues

### 安装程序提示你的 CPU 不受支持。

```
Unsupported architecture: <arch>
Download manually from https://get.wantastic.app
```

- **Where:** install.sh
- **Likely cause:** install.sh 只能识别发布矩阵中的 CPU。ppc64、s390x 和 loong64 有对应版本，但不会被自动识别。
- **Fix:** 按照《手动安装 tarball》指南，自行选择归档文件。

### 你在 Windows（Git Bash、MSYS、Cygwin）上运行了 install.sh。

```
Unsupported OS: <name>
```

- **Where:** install.sh
- **Likely cause:** install.sh 仅支持 Linux 和 macOS。
- **Fix:** 以管理员身份在 PowerShell 中使用 install.ps1。参见 Windows 指南。

PowerShell（管理员）:

```powershell
irm https://get.wantastic.app/install.ps1 | iex
```

### 认领或登录被拒绝。

```
Login failed: account has reached its device limit — upgrade your plan or remove an existing device
```

- **Where:** wantasticd login / 控制台
- **Likely cause:** 你的套餐设备数量已满。控制台显示 "You have reached the maximum number of devices for your plan."
- **Fix:** 在 Devices 中删除一台不再使用的设备（设备行 → Delete），或升级套餐。然后重新认领。

## Continue with

- [Getting started](https://wantastic.app/zh/docs/getting-started): Sign up, connect your first device and open Winbox or a browser SSH terminal on it. About five minutes.
- [Enrollment secrets](https://wantastic.app/zh/docs/enrollment-secrets): Tokens for automation, Windows and mass rollouts: create, limit and delete them.
- [Device onboarding](https://wantastic.app/zh/docs/device-onboarding): The easiest way to connect each kind of device: claim for Linux, Mac and OpenWrt, a script for MikroTik, a QR code for phones, and tokens for automation.
- [Install on Debian and Ubuntu](https://wantastic.app/zh/docs/install-debian-ubuntu): Install wantasticd on Debian, Ubuntu, Mint and Proxmox in 2 minutes: one command, scan a QR code, click Claim Device.
- [Install on Windows](https://wantastic.app/zh/docs/install-windows): Install wantasticd on Windows 10/11 and Windows Server: open PowerShell as Administrator, paste one line, approve the device in your browser.
- [Install on macOS](https://wantastic.app/zh/docs/install-macos): Install wantasticd on a Mac (Apple silicon or Intel) in 2 minutes: one Terminal command, scan a QR code, click Claim Device.
- [Connect a MikroTik router (RouterOS 7)](https://wantastic.app/zh/docs/remote-mikrotik): Connect a RouterOS 7 router in two minutes: copy one script from the console and paste it into the router terminal. No package and no open WAN port.
- [wantasticd CLI reference and operations](https://wantastic.app/zh/docs/wantasticd): The most used wantasticd commands first, then every command and flag, environment variables, config and state paths per OS, log lines, local access, exit node, and the claim flow (genkey / --wait-claim).
