AdGuard Linux 版無法在系統啟動時自動執行,如何開啟開機自動啟動?

在使用 systemd 的發行版上,需要手動啟用服務。請建立服務檔案 /etc/systemd/system/adguard-cli.service 並加入以下設定:
[Unit]
Description=AdGuard CLI
After=network.target

[Service]
Type=forking
WorkingDirectory=/opt/adguard-cli
ExecStart=/opt/adguard-cli/adguard-cli start
ExecStop=/opt/adguard-cli/adguard-cli stop
Restart=always
TimeoutStartSec=0
TimeoutStopSec=0
StandardOutput=journal
RemainAfterExit=yes
User=username

[Install]
WantedBy=multi-user.target
In the User=username parameter, replace username with your Linux username.
  1. Run the following commands to enable the service:
    systemctl daemon-reload
    systemctl enable --now adguard-cli
已開始下載 AdGuard 點擊箭頭所指示的檔案開始安裝 AdGuard。 選擇"開啟"並點擊"確定",然後等待該檔案被下載。在被打開的視窗中,拖曳 AdGuard 圖像到"應用程式"檔案夾中。感謝您選擇 AdGuard! 選擇"開啟"並點擊"確定",然後等待該檔案被下載。在被打開的視窗中,點擊"安裝"。感謝您選擇 AdGuard!
在行動裝置上安裝 AdGuard