如何在 Centos 8 上 运行 clamd 作为服务

How to run clamd as a service on Centos 8

我已经下载了 clamd(和 clamav),我想 运行 clamd 将按访问扫描作为 systemctl 的一项服务。这在 Centos 8 上什至可能吗?如果没有,是否有一种反病毒替代品可以让我在访问时扫描文件?

Failed to start clamd.service: Unit clamd.service not found.

由于 CentOS 7.x,您需要使用 systemdclamd 创建一个 .service 文件。
你有没有安装 clamav-server-systemd 包??这应该可以解决您的问题。如果需要,您可以创建自己的问题:

查看 https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/sect-managing_services_with_systemd-unit_files