파일
dhcp-dns-manager/INSTALL.md
T
CNBUGS AI 8ad4c3576d Fix DHCP client unable to get IP and config not persisting
- 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
2026-04-24 16:03:54 +08:00

1.4 KiB
Raw Blame 히스토리

🚀 一键安装指南

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

方法 3Docker 部署

docker-compose up -d

Windows 系统

方法 1Docker 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

验证安装

检查服务状态

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

📖 更多文档


祝你安装顺利! 🎉