Debian中部署AdGuardHome
下载AdGuardHome
https://github.com/AdguardTeam/AdGuardHome/releases
wget https://static.adguard.com/adguardhome/release/AdGuardHome_linux_amd64.tar.gz
解压安装
tar -zxvf AdGuardHome_linux_amd64.tar.gz
mv ./AdGuardHome /srv/
cd /srv/AdGuardHome
./AdGuardHome -s install
LXC系统中可能会和系统自带systemd-resolved服务有冲突,如有冲突就需要关闭系统的systemd-resolved服务
systemctl stop systemd-resolved
systemctl disable systemd-resolved
为了方便使用,定义AdGuardHome的命令简写为ad
nano ~/.bashrc
文件最后添加
alias ad='/srv/AdGuardHome/AdGuardHome'
生效
source ~/.bashrc
卸载
ad -s uninstall
启动
ad -s start
停止
ad -s stop
重启服务
ad -s restart
显示服务状态
ad -s status
配置完成后80端口访问
http://ip:80