diff --git a/readme.md b/readme.md index 4adab89..8da50dc 100644 --- a/readme.md +++ b/readme.md @@ -26,41 +26,38 @@ ## 🚀 快速开始 -### 方式一:直接运行二进制 +### 🐧 二进制安装(推荐) -从 [Releases](https://git.whitetop.xyz/lxh2875931338/frpc-console/releases) 下载对应平台版本: +适用于 Linux / Windows,无需 Docker,单文件运行。 + +👉 详见:[二进制安装指南](./INSTALL_BINARY.md) + +### 🐳 Docker 部署(一键脚本) + +适用于 Linux 服务器,自动编译 + 自动部署。 ```bash -# Linux / macOS -chmod +x frpc-console -./frpc-console - -# Windows -frpc-console.exe +curl -sSL https://git.whitetop.xyz/lxh2875931338/frpc-console/raw/main/deploy.sh | sudo bash ``` -首次启动会在终端提示设置管理员账户,之后访问 http://localhost:8080 即可。 +👉 详见:[Docker 安装指南](./INSTALL_DOCKER.md) -### 方式二:Docker 运行 +### 🔧 源码编译 + +适合开发者或需要自定义配置的用户。 ```bash -docker run -d \ - --name frpc-console \ - -p 9300:9300 \ - -v ./data:/app/data \ - lxh2875931338/frpc-console:latest -``` - -### 方式三:源码编译 - -```bash -git clone https://github.com/lxh2875931338/frpc-console.git +git clone https://git.whitetop.xyz/lxh2875931338/frpc-console.git cd frpc-console go mod tidy go build -o frpc-console . ./frpc-console ``` +首次访问 `http://localhost:9300` 注册管理员账户,然后导入你的 `frpc.toml` 即可开始使用。 + +--- + ## 🗂️ 项目结构 ```txt frpc-console/ @@ -123,41 +120,6 @@ go build -ldflags="-s -w" -o frpc-console . 前端使用 Vue 3 CDN + Naive UI,无需额外构建工具。修改 static/ 目录下的文件后,刷新浏览器即可预览效果。 ---- - -## 🚀 快速开始 - -### 🐧 二进制安装(推荐) - -适用于 Linux / Windows,无需 Docker,单文件运行。 - -👉 详见:[二进制安装指南](./INSTALL_BINARY.md) - -### 🐳 Docker 部署(一键脚本) - -适用于 Linux 服务器,自动编译 + 自动部署。 - -```bash -curl -sSL https://git.whitetop.xyz/lxh2875931338/frpc-console/raw/main/deploy.sh | sudo bash -``` - -👉 详见:[Docker 安装指南](./INSTALL_DOCKER.md) - -### 🔧 源码编译 - -适合开发者或需要自定义配置的用户。 - -```bash -git clone https://git.whitetop.xyz/lxh2875931338/frpc-console.git -cd frpc-console -go mod tidy -go build -o frpc-console . -./frpc-console -``` - ---- - -首次访问 `http://localhost:9300` 注册管理员账户,然后导入你的 `frpc.toml` 即可开始使用。 ---