CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了clamav 防病毒软件在centos 安装大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

Home Linux Centos How To Install ClamAV on CentOS 6 How To Install ClamAV on CentOS 6 r00t February 3, 2015 In this tutorial we will show you how to install and configuration of ClamAV on your CentOS
@H_696_6@
@H_696_6@

Home Linux Centos How To Install ClamAV on CentOS 6

How To Install ClamAV on CentOS 6

r00t February 3,2015

clamav 防病毒软件在centos 安装s.width=650;" class="aligncenter size-full wp-image-423" src="http://img.code.cc/vcimg/static/loading.png" http://code.js-code.com/tag/logo/"="" target="_blank" class="keywords">

logo" height="189" width="348" src="http://idroot.net/wp-content/uploads/2015/02/ClamAV-logo.jpg">

In this tutorial we will show you how to install and configuration of ClamAV on your CentOS 6 server. For those of you who didn’t kNow,ClamAV is an open source (GPL) antivirus ENGIne designed for detecTing viruses,malware and other malicIoUs threats on Linux. It’s easy to use and best for Linux based Web & Mail server. In this article,I will show you through the step by step installation of ClamAV on CentOS 6.x from source.

Install ClamAV on CentOS 6

Step 1. First add yum repository your system.

The EPEL repo is enabled by simply installing an RPm. Please use the command below to install the EPEL repository on your CentOS server.

#CentOS 6 � 32-bit rpm -Uvh http://mirror.overthewire.com.au/pub/epel/6/i386/epel-release-6-8.noarch.rpm #CentOS 6 � 64-bit rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

1

2

3

4

5

#CentOS 6 � 32-bit

rpm -Uvh http://mirror.overthewire.com.au/pub/epel/6/i386/epel-release-6-8.noarch.rpm

#CentOS 6 � 64-bit

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Step 2. Install @L_675_11@ ClamAV packages.

yum install clamav clamd

1

yum install clamav clamd

Step 3. Start the clamd service on system boot.

chkconfig clamd on service clamd start

1

2

chkconfig clamd on

service clamd start

update ClamAV’s signatures:

freshclam

1

freshclam

Step 4. Configuring daily scan.

In this example,I will configure a cronjob to scan the /home/ directory every day:

nano /etc/cron.daily/clamav_scan

1

nano /etc/cron.daily/clamav_scan

Add following piece of codE into clamav_scan file.

#!/bin/bash SCAN_DIR="/home" LOG_FILE="/var/log/clamav/manual_clamscan.log" /usr/bin/clamscan -i -r $SCAN_DIR >> $LOG_FILE

1

2

3

4

#!/bin/bash

SCAN_DIR="/home"

LOG_FILE="/var/log/clamav/manual_clamscan.log"

/usr/bin/clamscan -i -r $SCAN_DIR >> $LOG_FILE

Give our cron script executable permissions:

chmod +x /etc/cron.daily/clamav_scan

1

chmod +x /etc/cron.daily/clamav_scan

Congratulation’s! You have successfully installed ClamAV. Thanks for using this tutorial for installing ClamAV in CentOS 6 system. For additional Help or useful information,we recommend you to check the official ClamAV web site.

大佬总结

以上是大佬教程为你收集整理的clamav 防病毒软件在centos 安装全部内容,希望文章能够帮你解决clamav 防病毒软件在centos 安装所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
猜你在找的CentOS相关文章