转载地址:http://www.linuxdiyf.com/linux/18635.html

#yum install epel-release

#yum repolist 如果有epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64表示安装成功

#yum install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd -y

#sed -i -e “s/^Example/#Example/” /etc/freshclam.conf

#sed -i -e “s/^Example/#Example/” /etc/clamd.d/scan.conf

#freshclam

#sed -i -e ''s/(LocalSocket /var/run/clamd.scan/clamd.sock)/#($1)/" /etc/clam.d/scan.conf

#systemctl start clamd@scan

#systemctl status clamd@scan 如果看到是active就表示起来了