> For AI agents: the complete documentation index is available at https://www.tteam.icu/zh/llms.txt, the full documentation bundle is available at https://www.tteam.icu/zh/llms-full.txt.

# Adguard-Home去广告


AI 总结AI 生成

**核心内容**：介绍 AdGuard Home 私有 DNS 去广告服务的部署方式，以及 53 端口被 systemd-resolved 占用时的处理方法。
**内容要点**：
- AdGuard Home 快速部署
- DNS 过滤规则和上游配置
- 处理 53 端口被 systemd-resolved 占用的问题
适合在个人服务器、家庭实验室或轻量生产环境中按步骤部署与维护时参考。

AdGuard Home 可以作为私有 DNS 服务使用，通过规则过滤广告、追踪域名和部分恶意域名，适合部署在家庭网关或内网服务器上。

## 快速启动

```sh file="./adguardhome/setup.sh" title="setup.sh"
#!/bin/bash

docker rm -f adguardhome

docker run -id \
--name adguardhome \
--restart unless-stopped \
--network host \
-v ./workdir:/opt/adguardhome/work \
-v ./confdir:/opt/adguardhome/conf \
-d adguard/adguardhome
```

:::tip
如果遇到 `53` 端口被 `systemd-resolved` 占用，可以先停止并禁用它：

`systemctl disable systemd-resolved --now`
:::
