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
1.4 KiB
1.4 KiB
🚀 一键安装指南
Linux 系统(Debian/Ubuntu)
方法 1:一键安装脚本(推荐)
cd /path/to/dhcp-dns-manager
sudo ./install.sh
方法 2:手动安装
# 1. 安装系统依赖
sudo apt update
sudo apt install -y build-essential libsqlite3-dev
# 2. 修复依赖
./fix-deps.sh
# 3. 安装为系统服务
sudo ./install.sh
方法 3:Docker 部署
docker-compose up -d
Windows 系统
方法 1:Docker Desktop(推荐)
- 安装 Docker Desktop
- 双击运行
start.bat - 访问 http://localhost:8080
方法 2:本地运行
- 安装 Go: https://golang.org/dl/
- 双击运行
start.bat - 访问 http://localhost:8080
✅ 验证安装
检查服务状态
systemctl status dhcp-dns-manager
访问 Web 界面
浏览器打开:http://your-server-ip:8080
默认账号:admin / admin
🔧 如果遇到问题
依赖下载失败
./fix-deps.sh
端口被占用
编辑 configs/config.json 修改端口:
{
"web": {
"port": 8081
}
}
权限不足
sudo ./install.sh
📖 更多文档
- QUICKSTART.md - 快速开始
- TROUBLESHOOTING.md - 故障排除
- BUILD.md - 详细构建说明
祝你安装顺利! 🎉