参考 https://www.howtoing.com/how-to-install-lmd-and-clamav-on-centos-7

安装Epel仓库和Mailx

  1. yum -y install epel-release
  2. yum -y install mailx

安装

恶意软件检测(LMD)

  1. cd /tmp
  2. wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
  3. tar -xzvf maldetect-current.tar.gz
  4. cd maldetect-1.6.4
  5. ./install.sh
  6. ln -s /usr/local/maldetect/maldet /bin/maldet
  7. hash -r

配置Linux恶意软件检测(LMD)

  1. cd /usr/local/maldetect/
  2. vim conf.maldet

安装ClamAV

  1. yum -y install clamav clamav-devel
  2. # 更病毒库
  3. freshclam

测试LMD和ClamAV

  1. maldet -a /var/www/html