1
0
forked from Eeveid/lightOps

新增主控一键安装脚本

This commit is contained in:
2026-05-25 01:28:54 +08:00
parent d3bb9f45a6
commit 7d6a06839c
2 changed files with 335 additions and 29 deletions

View File

@@ -69,6 +69,33 @@ lightops/
- Node.js 20 或更高版本。
- Agent 运行能力优先面向 Linux 主机。
## 一条命令安装 Server
在目标 Linux 服务器上使用 root 执行:
```bash
curl -fsSL https://gitea.kmux.cn/Eeveid/lightOps/raw/branch/main/scripts/install-server.sh | bash
```
指定面板访问地址:
```bash
curl -fsSL https://gitea.kmux.cn/Eeveid/lightOps/raw/branch/main/scripts/install-server.sh | bash -s -- --public-url https://panel.example.com
```
安装脚本会自动安装基础依赖、Rust、Node.js拉取远程仓库构建前端和 Rust 二进制,写入 `/etc/lightops/server.toml`,注册并启动 `lightops-server` systemd 服务。安装完成后访问 `/init` 初始化管理员。
常用参数:
```bash
--repo <url> Git 仓库地址
--branch <name> Git 分支,默认 main
--install-dir <path> 安装目录,默认 /opt/lightops
--bind <addr> 监听地址,默认 0.0.0.0:8080
--public-url <url> 面板外部访问地址
--skip-deps 跳过依赖安装检查
```
构建前端:
```bash