CentOS 5.2 安装后CLAMAV 0.94无法启动问题

出错信息:
[root@localhost ~]# /etc/init.d/clamd start
Starting Clam AntiVirus Daemon: LibClamAV Error: cli_loaddbdir(): Can't open directory /var/clamav
ERROR: Unable to open file or directory
[root@localhost ~]# freshclam
ClamAV update process started at Mon Oct  6 20:15:57 2008
Downloading main-48.cdiff [100%]
main.cld updated (version: 48, sigs: 399264, f-level: 35, builder: sven)
WARNING: getfile: daily-8139.cdiff not found on remote server (IP: 155.98.64.86)
WARNING: getpatch: Can't download daily-8139.cdiff from db.us.clamav.net
Trying host db.us.clamav.net (208.72.56.53)...
WARNING: getfile: daily-8139.cdiff not found on remote server (IP: 208.72.56.53)
WARNING: getpatch: Can't download daily-8139.cdiff from db.us.clamav.net
Trying host db.us.clamav.net (199.184.215.2)...
WARNING: getfile: daily-8139.cdiff not found on remote server (IP: 199.184.215.2)
WARNING: getpatch: Can't download daily-8139.cdiff from db.us.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Trying host db.us.clamav.net (199.184.215.2)...
Downloading daily.cvd [100%]
daily.cvd updated (version: 8381, sigs: 37683, f-level: 35, builder: guitar)
Database updated (436947 signatures) from db.us.clamav.net (IP: 199.184.215.2)
WARNING: Clamd was NOT notified: Can't connect to clamd through /tmp/clamd.socket
connect(): No such file or directory
[root@localhost ~]# WARNING: Clamd was NOT notified: Can't connect to clamd through /tmp/clamd.socket
> connect(): No such file or directory
>
文章出处: [url]http://www.mail-archive.com/[email protected]/msg29950.html[/url]

原因是受SELinux控制影响
解决方法:
方法1.禁用SELinux
修改/etc/selinux/config将SELINUX=enforcing更改为SELINUX=disabled保存后重启

方法2.运行setsebool -P clamd_disable_trans=1,使clam不受SELinux的控制

你可能感兴趣的:(centos,职场,休闲,ClamAV,CLAMAV无法启动)