Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

Commit d8d1be6

Browse files
Merge pull request #121 from AstrBotDevs/v4
拉取主分支更新
2 parents 44b08d7 + d62c80d commit d8d1be6

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

zh/deploy/astrbot/sys-pm.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# 通过系统包管理器安装
2+
> [!WARNING]
3+
> 目前仅提供AUR版本
4+
> 如果你是windows用户/macos用户,建议通过uv来安装
5+
> 如果你是Linux用户,强烈建议通过包管理器来安装
6+
7+
# 准备步骤
8+
9+
## AUR 是什么?
10+
AUR允许用户从社区维护的软件仓库中安装软件。AUR的包通常是由社区成员维护的,而不是官方维护的。
11+
常见的AUR助手有yay,paru。
12+
以下教程以paru为例,yay同理,仅需将paru替换为yay。
13+
14+
# 安装过程
15+
16+
## AUR
17+
```bash
18+
paru -S astrbot-git
19+
# 提示:
20+
# 开始审阅步骤,按q可退出审阅,继续安装
21+
# 安装后数据目录固定在:~/.local/share/astrbot
22+
```
23+
# 启动
24+
>[!TIP]
25+
> 你可以直接使用 astrbot init (首次运行)初始化
26+
> 使用astrbot run运行
27+
> 但是更加推荐使用systemctl启动,拥有自动重启,日志轮转等功能
28+
29+
```bash
30+
systemctl --user start astrbot.service
31+
```
32+
33+
# 开机自启
34+
```bash
35+
# 处于安全考虑,设计为以用户身份执行
36+
systemctl --user enable astrbot.service
37+
# 如果需要立即启动,加上--now
38+
# systemctl --user enable --now astrbot.service
39+
```

0 commit comments

Comments
 (0)