How to Install AntiVirus Clamav in RHEL 7 for Web Server
Preparation
You must mounting your local repo and install epel repo
Installing
For RHEL 6
# yum install -y epel-release # yum install -y clamav
![]() |
Install Clamav |
For RHEL 7
# yum install -y epel-release # yum -y install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd
Configure
Backup and config this clamav and configure it
# cp /etc/clamd.d/scan.conf /etc/clamd.d/scan.conf.bak # sed -i '/^Example/d' /etc/clamd.d/scan.conf
and uncomment this script at LocalSocket
# vi /etc/clamd.d/scan.conf
....... LocalSocket /var/run/clamd.scan/clamd.sock ......
For this Anti Virus is up to date you must run command freshclam but config before you run it
# cp /etc/freshclam.conf /etc/freshclam.conf.bak # sed -i -e "s/^Example/#Example/" /etc/freshclam.conf # freshcalm
![]() |
update freshcalm |
And setup this service to start and autostart on booting
# systemctl start clamd@scan # systemctl enable clamd@scan
Trying
try to scan some directory to make sure this service is worked
# clamscan -r --remove /home/kitsake
![]() |
try scan with clamav |
Maybe that's all I can share with you guys, hopefully this article will be useful.
Thank You
Post a Comment for "How to Install AntiVirus Clamav in RHEL 7 for Web Server"