错误:Debian / Ubuntu - ClamAV-clamd:无法连接到UNIX套接字/var/run/clamav/clamd.ctl
您在Debian / Ubuntu上的邮件日志( /var/log/mail.log
)中收到以下错误:
Jul 28 22:04:28 server1 amavis[31819]: (31819-19) (!)ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: 2, retrying (2)
Jul 28 22:04:34 server1 amavis[31819]: (31819-19) (!!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 88) line 309.
Jul 28 22:04:34 server1 amavis[31819]: (31819-19) (!!)WARN: all primary virus scanners failed, considering backups
解
缺少包clamav-daemon
。 安装如下:
apt-get install clamav-daemon
在Ubuntu上,如果您没有以root用户身份登录,则必须先使用sudo命令
:
sudo apt-get install clamav-daemon