In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail about the use of ClamAV in Linux antivirus software. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Foreword:
More and more companies pay attention to security, some companies choose to use cloud servers, because it can save a lot of things, at least do not have to spend a lot of things on their own security, as long as the usual simple maintenance. Some companies are also good at using a combination of cloud and physical machines. Some companies are all physical machines, so they will suffer a bit in terms of security and need to be maintained in other ways.
As we all know, the general hardware firewall is mainly to filter ip and ports, and can not prevent sql injection, viruses and other things.
Asked some of the operation and maintenance partners, found that people still like to use clamav this free antivirus software, write a blog. Share it with some buddies.
Introduction:
Commonly used free antivirus software:
1. ClamAV antivirus
ClamAV antivirus is the most popular antivirus software on Linux platform. ClamAV is a free and open source product that supports a variety of platforms, such as Linux/Unix, MAC OS X, Windows, OpenVMS. ClamAV is a command-line tool based on virus scanning, but there are also ClamTK tools that support graphical interfaces. ClamAV is mainly used for mail servers to scan messages. It has multiple interfaces to scan mail from the mail server, and supports file formats such as ZIP, RAR, TAR, GZIP, BZIP2, HTML, DOC, PDF, SIS CHM, RTF and so on. ClamAV has an automatic database updater that can also be run from a shared library. The command line interface makes ClamAV run smoothly.
2. Avast Linux Home Edition
Avast is one of the best antivirus solutions for your computer. Avast Linux Home Edition is free and can only be used for home or non-commercial use. The easy-to-use user interface and other features make Avast increasingly popular, supporting both GUI and command-line tools. All users can easily operate, because it has a simple interface (beginner) advanced interface (advanced user), Avast has the following features: automatic updates, built-in mail scanner and so on.
3 、 Avria
Another best antivirus software under Linux is the free antivirus version of Avria. Avria provides an extensible configuration that makes it possible to control your computer. It has some powerful features, such as simple script installation, command line scanners, automatic updates (product, engine, VDF), self-integrity program checking, and so on.
4. Antivirus free version of AVG
More than 1 billion users now use AVG antivirus, which is also a good antivirus expert on Linux machines, and the free version offers fewer features than the premium version. AVG currently does not support graphical interfaces. Provide anti-virus and anti-spyware tools, AVG runs very fast, takes up little system resources, and supports mainstream Linux versions such as Debian, Ubuntu, Red hat, Cent OS, FreeBSD and so on.
5. F-PROT antivirus
F-PORT is a new antivirus solution among Linux users, which is free for home users. It has the feature of task scheduling using the cron tool and can perform scanning tasks at a specified time. At the same time, it can also scan USB HDD, Pendrive, CD-ROM, network driver, specified file or directory, boot area virus scanning, mirror image.
Implementation documentation:
Environment: centos6.6 mini
Version: clamav-0.99.2.tar.gz
Step 1: download Clamav
Http://www.clamav.net/downloads
# yuminstall wget-y
Step 2: create clamav users and groups
Groupaddclamav (create clamav group)
Useradd-g clamav clamav (create clamav users and join clamav groups)
Step 3: compile and install
Tar xfclamav-0.99.2.tar.gz
Cdclamav-0.99.2
Install dependency packages
Yuminstall gcc openssl openssl-devel-y
. / configure--prefix=/usr/local/clamav
Make&&make install
Step 4: configure
Mkdir/usr/local/clamav/logs (log storage directory)
Touch/usr/local/clamav/logs/clamd.log
Touch/usr/local/clamav/logs/freshclam.log
Mkdir/usr/local/clamav/updata (clanav virus library directory)
Chown-R root.clamav / usr/local/clamav/
Chown-R clamav.clamav / usr/local/clamav/updata/
Chownclamav.clamav / usr/local/clamav/logs/clamd.log
Chownclamav.clamav / usr/local/clamav/logs/freshclam.log
Cd / usr/local/clamav/etc
Cpclamd.conf.sample clamd.conf
Cpfreshclam.conf.sample freshclam.conf
Vimclamd.conf
# Example comment out this line.
LogFile/usr/local/clamav/logs/clamd.log
PidFile/usr/local/clamav/updata/clamd.pid
DatabaseDirectory/usr/local/clamav/updata
~ ~ ~
Vimfreshclam.conf
# Example comment out this line.
DatabaseDirectory/usr/local/clamav/updata
UpdateLogFile/usr/local/clamav/logs/freshclam.log
PidFile/usr/local/clamav/updata/freshclam.pid
~ ~ ~
Step 5: upgrade the virus bank
/ usr/local/clamav/bin/freshclam
The process takes a long time, about half an hour. Let's wait. You can turn on screen to do it.
/ usr/local/clamav/bin/clamscan--remove (kill the current directory and delete infected files)
Note: make sure the network is working properly
Step 6: plan tasks
Application of actual production environment
Generally use scheduled tasks to let the server regularly follow the new and regular antivirus every night. Save the antivirus log, my crontab file is as follows
1 3 * / usr/local/clamav/bin/freshclam
30 3 * / usr/local/clamav/bin/clamscan-infected-r /-- remove-1 / var/log/clamscan.log
About Linux antivirus software in the use of ClamAV to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.