Files
volcengine-server-manager/README.md

68 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Volcengine Server Manager
火山引擎云服务器 ECS 管理工具 - Windows 桌面应用
## 功能
- 查看服务器状态实例名称、状态、IP、区域、规格
- 重启服务器(带确认弹窗)
- GUI 配置界面Access Key ID、Secret Access Key、Endpoint
- 自动获取所有区域的实例
- 中文界面支持
## 技术栈
| 层 | 选型 |
|---|------|
| GUI | egui + eframe (glow) |
| HTTP | reqwest (rustls) |
| 异步运行时 | tokio |
| API 签名 | HMAC-SHA256 |
| 序列化 | serde + serde_json |
## 编译环境
- **工具链**: `x86_64-pc-windows-gnu` (MSYS2 MinGW)
- **不使用**: MSVC / Visual Studio
## 编译
```bash
# 添加目标平台
rustup target add x86_64-pc-windows-gnu
# Debug 编译
cargo build --target x86_64-pc-windows-gnu
# Release 编译
cargo build --release --target x86_64-pc-windows-gnu
```
输出文件: `target/x86_64-pc-windows-gnu/release/volcengine-server-manager.exe`
## 配置
首次启动时弹出配置窗口,需要填写:
| 配置项 | 说明 | 必填 |
|--------|------|------|
| Access Key ID | 火山引擎 AK | 是 |
| Secret Access Key | 火山引擎 SK | 是 |
| Endpoint | API 端点,默认 `ecs.volcengineapi.com` | 否 |
配置文件保存在 `%APPDATA%\volcengine-server-manager\config.json`
## 截图
主界面以卡片形式展示每个实例,显示:
- 实例名称
- 运行状态(带颜色标识)
- IP 地址
- 所属区域
- 实例规格
- 重启按钮
## License
MIT