Hi,
I have installed Clamav on CentOS release 6.9 (Final):
#yum install epel-release -y
#yum install clamad clam-db (clamav-0.99.2-2.el6.x86_64)
#chkconfig clamad on
I did the following command to update pattern:
#freshclam
But when i did:
# service clamad start -> this command is failed
I don't know why? Can you help me to understand? Thank you
Regards,
Service Clamav doesn't start
Re: Service Clamav doesn't start
You did mean service clamd start ? (there's only one 'a' in clamd, it's not clamad).
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Service Clamav doesn't start
Yes Sorry, I did service clamd start.
Re: Service Clamav doesn't start
Isn't there a clamd log in /var/log/? Does it not offer clues?
As an alternative, work out what /etc/init.d/clamd launches and run it in the foreground to see any errors.
As an alternative, work out what /etc/init.d/clamd launches and run it in the foreground to see any errors.
Re: Service Clamav doesn't start
Hi,
I resolved my problem:
- I checked clamav logs:
#/var/log/clamav/clamd.log
This error is displayed:
ERROR: daemonize() failed: Cannot allocate memory
I add Swap like that:
#sudo dd if=/dev/zero of=/swapfile bs=1024 count=512k
#sudo mkswap /swapfile
#sudo swapon /swapfile
#sudo nano /etc/fstab
I add on this file: /swapfile swap swap defaults 0 0
#chown root:root /swapfile
#chmod 0600 /swapfile
#sysctl vm.swappiness=10
#sudo nano /etc/sysctl.conf
and i add:
# Search for the vm.swappiness setting. Uncomment and change it as necessary.
vm.swappiness=10
After reboot, the service clamd was running.
I resolved my problem:
- I checked clamav logs:
#/var/log/clamav/clamd.log
This error is displayed:
ERROR: daemonize() failed: Cannot allocate memory
I add Swap like that:
#sudo dd if=/dev/zero of=/swapfile bs=1024 count=512k
#sudo mkswap /swapfile
#sudo swapon /swapfile
#sudo nano /etc/fstab
I add on this file: /swapfile swap swap defaults 0 0
#chown root:root /swapfile
#chmod 0600 /swapfile
#sysctl vm.swappiness=10
#sudo nano /etc/sysctl.conf
and i add:
# Search for the vm.swappiness setting. Uncomment and change it as necessary.
vm.swappiness=10
After reboot, the service clamd was running.