ITPub博客

首页 > Linux操作系统 > Linux操作系统 > clamd socket找不到错误解决

clamd socket找不到错误解决

原创 Linux操作系统 作者:tengrid 时间:2009-05-18 19:58:24 0 删除 编辑
/var/log/maillog中有一段错误如下

Mar  7 14:41:40 bbn107 amavis[4899]: (04899-02) (!)ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd: Connection refused, retrying (2)
Mar  7 14:41:46 bbn107 amavis[4899]: (04899-02) (!)run_av (ClamAV-clamd, built-in i/f): Too many retries to talk to /var/run/clamav/clamd (Can't connect to UNIX socket /var/run/clamav/clamd: Connection refused) at (eval 98) line 310.
Mar  7 14:41:46 bbn107 amavis[4899]: (04899-02) (!!)ClamAV-clamd av-scanner FAILED: CODE(0x94bade8) Too many retries to talk to /var/run/clamav/clamd (Can't connect to UNIX socket /var/run/clamav/clamd: Connection refused) at (eval 98) line 310. at (eval 98) line 511.
Mar  7 14:41:46 bbn107 amavis[4899]: (04899-02) (!!)WARN: all primary virus scanners failed, considering backups

ps ax也找不到进程clamd
启动/usr/local/sbin/clamd后,过一段时间clamd进程会消失.

/var/log/clamav/clamd.log中的错误信息

root@bbn107:/var/log/clamav# grep -i "ERROR"  clamd.log
Mon Jan 28 00:00:25 2008 -> ERROR: Socket file /var/run/clamav/clamd is in use by another process.
Mon Jan 28 00:32:37 2008 -> ERROR: Socket file /var/run/clamav/clamd is in use by another process.
Wed Jan 30 11:49:01 2008 -> ERROR: Socket file /var/run/clamav/clamd is in use by another process.
Fri Mar  7 11:15:42 2008 -> ERROR: Socket file /var/run/clamav/clamd exists. Either remove it, or configure a different one.
Fri Mar  7 14:10:26 2008 -> ERROR: Socket file /var/run/clamav/clamd exists. Either remove it, or configure a different one.

其实错误信息中已经提示如何处理了: 删除socket文件,然后重启clamd进程就会重新创建一个.


处理过程:
1, #rm /var/run/clamav/clamd
2, #/usr/local/sbin/clamd

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/94384/viewspace-600325/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-05-18

  • 博文量
    136
  • 访问量
    379903