Install a free antivirus software clam for your Linux server! Brother K

Source: Internet
Author: User
Tags syslog system log

October 17, 2016


Brother K's servers are external services to do web business

So they're often harassed by some hacker.

It's not a success, but it's very worrying.


If you understand the hack.

You must know how often a Web server is attacked by hacker.

is being attacked almost all the while.


Of course there are many ways to attack, and K has played for years.

But ultimately the ultimate goal is to upload the Trojan to control your machine

Then a free and powerful anti-virus software is very important


This is K brother recently with the latest clam software installed, so you can press to do the work must be successful!


First, Introduction
Clam Antivirus is a free antivirus software based on Unix/linux operating system, it supports online update virus database, features:
1) GNU Open source software
2) Quick Scan
3) can detect 35000 kinds of viruses, creep early, Arlo, including Microsoft Office documents and macro viruses
4) Ability to detect compressed files (Zip RAR Tar GzipBzip2 ... )
5) Powerful mail scanning function
6) Strong extensibility

Second, installation

Yum Installepel-release install this yum source to load CLAMD

Yum Install clamd-y Installing CLAMD

chkconfig Clamdn on set to self-start
Service CLAMD start CLAMD anti-virus software
Freshclam update clam's virus database

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/00/wKiom1gEaWOxdNA2AAFHpJR8kUM520.png-wh_500x0-wm_3 -wmp_4-s_4207573623.png "title=" qq picture 20161017140144.png "alt=" Wkiom1geawoxdna2aafhpjr8kum520.png-wh_50 "/>

Description: ClamAV will only scan for files that can be read for ClamAV. If you want to scan all files, add the sudo parameter before the command.

Third, Clamscan command usage

Other detailed parameters:

- l [ path] [filename] The path saved by the scan report

Clamscan-l/var/log/clamscan.log/

--move [ path] Move virus file to:
--remove [path] Delete a virus file

--unzip (Unrar) Unzip compressed file scan

HELLO, this is brother K.

- I. Show only files that have problems

--bell Online virus Scanning

Some ClamAV some examples

Scan all users ' home directories for use

Clamscan-r/Home

Scan all files on your computer and display scan results for all files

Clamscan-r/

Scan all files on the computer and display only the scanned results of the problematic files

Clamscan-r-I./

Iv. configuration Software

1 , build clam self-occupied catalogue

Mkdir/opt/clamav

Touch/opt/clamav/bingdu.log

Hi, I'm brother K.

2 , a scheduled scan task

Crontab-e

0 7 * * * date >/opt/clamav/bingdu.log;/usr/bin/clamscan--bell-i-r/>>/opt/clamav/bingdu.log

So the output of the log has a date, some Daniel can modify the program let Clamscan automatic realistic date, here do not


3 , clam, and Freshclam configuration files

Clam the configuration:

# vi/etc/clamd.conf 

Modify the log file path to the place you like

syslog No Yes change to No, do not display the log in the system log, or the system log will have a large number of clam logs Oh

scanarchive No Yes to No (do not treat large volumes of compressed files as infected files)

#User ClamAV Add "#" at the beginning of the line (no general user control allowed)

K-Brother Productions

Freshclam the configuration:

#vi/etc/freshclam.conf  

Change the checks from "24" to "6" and remove the previous # to update the virus database every 6 hours.

syslog No Yes change to No, do not display logs in the system log

Restart takes effect

Service Clamdrestart


OK, a free and powerful anti-virus software Installation success, after the K brother will also write some other security aspects of knowledge, please pay attention!

This article is from the "kevinzhang91" blog, make sure to keep this source http://kevinzhang91.blog.51cto.com/12012510/1862634

Install a free antivirus software clam for your Linux server! Brother K

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.