1
0
forked from Eeveid/lightOps

增强一键安装输出和随机初始化

This commit is contained in:
2026-05-25 01:45:31 +08:00
parent 7d6a06839c
commit 89b464d73e
2 changed files with 221 additions and 11 deletions

View File

@@ -83,7 +83,7 @@ curl -fsSL https://gitea.kmux.cn/Eeveid/lightOps/raw/branch/main/scripts/install
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` 初始化管理员
安装脚本会自动安装基础依赖、Rust、Node.js随机选择未占用端口,拉取远程仓库,构建前端和 Rust 二进制,写入 `/etc/lightops/server.toml`,注册并启动 `lightops-server` systemd 服务。首次安装会自动生成随机管理员账号和密码,并在安装完成后输出内网地址、本机地址、公网地址、端口、用户名和密码。首次凭据会保存到 `/etc/lightops/initial-admin.txt`,请登录面板后立即修改密码
常用参数:
@@ -91,7 +91,7 @@ curl -fsSL https://gitea.kmux.cn/Eeveid/lightOps/raw/branch/main/scripts/install
--repo <url> Git 仓库地址
--branch <name> Git 分支,默认 main
--install-dir <path> 安装目录,默认 /opt/lightops
--bind <addr> 监听地址,默认 0.0.0.0:8080
--bind <addr> 监听地址,默认随机选择未占用端口
--public-url <url> 面板外部访问地址
--skip-deps 跳过依赖安装检查
```