In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Environment: Centos 7.2
Software: clamav
Step 1: download Clamav
Wget http://www.clamav.net/downloads/production/clamav-0.99.2.tar.gz
Step 2: create clamav users and groups
Groupadd clamav useradd-g clamav clamav
Step 3: compile and install
Tar xf clamav-0.99.2.tar.gzcd clamav-0.99.2./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.logtouch / usr/local/clamav/logs/freshclam.logmkdir / usr/local/clamav/updata (clanav virus library directory) chown-R root.clamav / usr/local/clamav/chown-R clamav.clamav / usr/local/clamav/updata/chown clamav.clamav / usr/local/clamav/logs/clamd.logchown clamav.clamav / usr/local/clamav/logs/freshclam.logcd / usr/ Local/clamav/etccp clamd.conf.sample clamd.confcp freshclam.conf.sample freshclam.confvi clamd.conf#Example commented out this line. LogFile / usr/local/clamav/logs/clamd.log PidFile / usr/local/clamav/updata/clamd.pid DatabaseDirectory / usr/local/clamav/updatavi freshclam.conf#Example commented out this line. DatabaseDirectory / usr/local/clamav/updataUpdateLogFile / usr/local/clamav/logs/freshclam.logPidFile / 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)
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
Yum install crontabs-y/sbin/service crond start / / start the service / sbin/service crond stop / / close the service / sbin/service crond restart / / restart the service / sbin/service crond reload / / reload the configuration chkconfig crond on / / boot centos6systemctl enable crond.service / / boot boot centos7crontab-e1 3 * / usr/local/clamav/bin/freshclam 303 * / usr/ Local/clamav/bin/clamscan-- infected-r /-- remove-l / var/log/clamscan.log
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.