Linux
clamav-daemon 啟動條件失敗,/var/lib/clamav/daily.{c升_在lvld,inc} 未滿足
安裝 Modoboa(開源郵件託管)後,我嘗試啟動 clamav-daemon,但遇到啟動條件失敗。
systemctl status clamav-daemon.service clamav-daemon.service - Clam AntiVirus userspace daemon Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/clamav-daemon.service.d └─extend.conf Active: inactive (dead) Condition: start condition failed at Fri 2021-01-15 04:19:06 EST; 33min ago └─ ConditionPathExistsGlob=/var/lib/clamav/daily.{c[vl]d,inc} was not met
下面顯示了問題,conditionPathExistsGlob=/var/lib/clamav/daily.{c
$$ vl $$d,inc} 不滿足。我無法使用 systemctl 或其他命令啟動服務。經過一些故障排除後,我發現 /var/lib/clamav 是空的,應該有一些 .cvd 更新文件。此外,我無法使用此命令更新 clamav(顯示 403 錯誤):
sudo clamav-freshclam
我現在能做什麼?
經過某種嘗試,最後我直接從clamav.net/downloads使用 wget 命令手動下載 daily.cvd 和 main.cvd並使用 scp 命令將它們移動到我的伺服器並將它們放入 /var/lib/clamav ,然後重新啟動服務它奏效了!
systemctl restart clamav-daemon.service systemctl status clamav-daemon.service clamav-daemon.service - Clam AntiVirus userspace daemon Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/clamav-daemon.service.d └─extend.conf Active: active (running)