8ad4c3576d
- Fixed verifyAssignment being too strict for new clients - Fixed parseRequestedIP string conversion bug - Fixed response sent to 0.0.0.0 instead of broadcast address - Added SO_BROADCAST support for UDP socket - Fixed session persistence after page refresh (localStorage) - Added in-memory session store for auth middleware - Added config reloader so DHCP server picks up web UI changes dynamically
102 lines
1.4 KiB
Markdown
102 lines
1.4 KiB
Markdown
# 🚀 一键安装指南
|
||
|
||
## Linux 系统(Debian/Ubuntu)
|
||
|
||
### 方法 1:一键安装脚本(推荐)
|
||
|
||
```bash
|
||
cd /path/to/dhcp-dns-manager
|
||
sudo ./install.sh
|
||
```
|
||
|
||
### 方法 2:手动安装
|
||
|
||
```bash
|
||
# 1. 安装系统依赖
|
||
sudo apt update
|
||
sudo apt install -y build-essential libsqlite3-dev
|
||
|
||
# 2. 修复依赖
|
||
./fix-deps.sh
|
||
|
||
# 3. 安装为系统服务
|
||
sudo ./install.sh
|
||
```
|
||
|
||
### 方法 3:Docker 部署
|
||
|
||
```bash
|
||
docker-compose up -d
|
||
```
|
||
|
||
---
|
||
|
||
## Windows 系统
|
||
|
||
### 方法 1:Docker Desktop(推荐)
|
||
|
||
1. 安装 Docker Desktop
|
||
2. 双击运行 `start.bat`
|
||
3. 访问 http://localhost:8080
|
||
|
||
### 方法 2:本地运行
|
||
|
||
1. 安装 Go: https://golang.org/dl/
|
||
2. 双击运行 `start.bat`
|
||
3. 访问 http://localhost:8080
|
||
|
||
---
|
||
|
||
## ✅ 验证安装
|
||
|
||
### 检查服务状态
|
||
|
||
```bash
|
||
systemctl status dhcp-dns-manager
|
||
```
|
||
|
||
### 访问 Web 界面
|
||
|
||
浏览器打开:`http://your-server-ip:8080`
|
||
|
||
默认账号:`admin` / `admin`
|
||
|
||
---
|
||
|
||
## 🔧 如果遇到问题
|
||
|
||
### 依赖下载失败
|
||
|
||
```bash
|
||
./fix-deps.sh
|
||
```
|
||
|
||
### 端口被占用
|
||
|
||
编辑 `configs/config.json` 修改端口:
|
||
```json
|
||
{
|
||
"web": {
|
||
"port": 8081
|
||
}
|
||
}
|
||
```
|
||
|
||
### 权限不足
|
||
|
||
```bash
|
||
sudo ./install.sh
|
||
```
|
||
|
||
---
|
||
|
||
## 📖 更多文档
|
||
|
||
- [QUICKSTART.md](QUICKSTART.md) - 快速开始
|
||
- [TROUBLESHOOTING.md](TROUBLESHOOTING.md) - 故障排除
|
||
- [BUILD.md](BUILD.md) - 详细构建说明
|
||
|
||
---
|
||
|
||
**祝你安装顺利!** 🎉
|