INSTALL.md 1.4 KB

🚀 一键安装指南

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(推荐)

  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

📖 更多文档


祝你安装顺利! 🎉