直接安装:(在N1 ARM64架构下,目前采用这个)
wget https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.101.0/AdGuardHome_linux_arm64.tar.gz
tar xvf AdGuardHome_linux_arm64.tar.gz
cd AdGuardHome
将解压的文件拷贝到 /usr/local/bin
sudo chmod u+x AdGuardHome
sudo ./AdGuardHome -s install
国内规则:
PSS. 因为ADGuard Home原生对中国的网站支持不太好,这里提供一个国人维护的ADGuard规则可以按需订阅。
Github地址:https://github.com/privacy-protection-tools/anti-AD
ADGuard规则地址:https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-easylist.txt
docker 安装
说明:AdGuardHome支持docker部署,但非常不稳定,总是自己挂死,因此直接安装。(又或者是超过每分钟DNS请求数?,这里改为了0,不限制)
docker pull adguard/adguardhome:arm64-latest
docker run –name adguardhome –restart always –network host -v /etc/adguardhome/workdir:/opt/adguardhome/work -v /etc/adguardhome/confdir:/opt/adguardhome/conf -d adguard/adguardhome:arm64-latest
管理
root@MHS-CORE-01-ARMv8-N1:/usr/local/bin# systemctl status AdGuardHome.service
● AdGuardHome.service – AdGuard Home: Network-level blocker
Loaded: loaded (/etc/systemd/system/AdGuardHome.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-04-23 18:56:17 CST; 11min ago
Main PID: 10522 (AdGuardHome)
Tasks: 14 (limit: 1072)
Memory: 33.3M
CGroup: /system.slice/AdGuardHome.service
└─10522 /usr/local/bin/AdGuardHome -s run