clamav 防病毒软件在centos 安装
2016-08-17 11:42
239 查看
Home Linux Centos How To Install ClamAV on CentOS 6
r00t
February 3, 2015
![](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.
#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 required ClamAV packages.
yum install clamav clamd
Step 3. Start the clamd service on system boot.
chkconfig clamd on
service clamd start
Update ClamAV’s signatures:
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
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
Give our cron script executable permissions:
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.
How To Install ClamAV on CentOS 6
r00tFebruary 3, 2015
![](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 |
yum install clamav clamd
1 | yum install clamav clamd |
chkconfig clamd on
service clamd start
1 2 | chkconfig clamd on service clamd start |
freshclam
1 | freshclam |
nano /etc/cron.daily/clamav_scan
1 | nano /etc/cron.daily/clamav_scan |
#!/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 |
chmod +x /etc/cron.daily/clamav_scan
1 | chmod +x /etc/cron.daily/clamav_scan |
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.
相关文章推荐
- centos 6.5 下安装ClamAV杀毒软件
- centos clamav杀毒软件安装配置及查杀,没想到linux下病毒比windows还多!
- centos 6.5安装杀毒软件clamav
- centos 6.4安装杀毒软件clamAV 0.98
- Centos 安装ClamAv 杀毒软件
- Centos6.8系统安装代码杀毒软件:ClamAV
- centos 6.0安装杀毒软件clamAV 0.98
- centos clamav杀毒软件安装配置及查杀,没想到linux下病毒比windows还多!
- centos 扫毒软件clamAV安装
- centos 6.4安装杀毒软件clamAV 0.98[转]
- 在64位的 CentOS 上只安装64位的软件包
- 在centos5.3下安装cacti软件
- CentOS中安装Clam AntiVirus杀毒软件 大 | 中 | 小
- 在64位的 CentOS 上只安装64位的软件包
- 在Centos中yum安装和卸载软件的使用方法
- CentOS使用yum安装软件提示需要KEY的解决方法
- CentOS 5.3 安装后的基本软件配置
- CentOS5.4 安装RPMforge 软件仓库
- 使用CentOS光盘镜像作为YUM源安装rpm软件包