forked from Eeveid/lightOps
新增主控一键安装脚本
This commit is contained in:
27
README.md
27
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user