Инструменты пользователя

Инструменты сайта


сервис_clamav

Это старая версия документа.


Сервис Clamav

Установка

!!! Требуется не меньше 1024Mb RAM !!! 

FreeBSD

[gate:~] # pkg install clamav

[gate:~] # rehash

Debian/Ubuntu

root@gate:~# apt install clamav-daemon

CentOS7

Настройка

FreeBSD

[gate:~] # cat /usr/local/etc/clamd.conf

Debian/Ubuntu

root@gate:~# less /etc/clamav/clamd.conf

Запуск

FreeBSD

[gate:~] # cat /etc/rc.conf
...
clamav_freshclam_enable=yes
clamav_clamd_enable=yes
[gate:~] # service clamav-freshclam start

[gate:~] # ls -l /var/db/clamav/

[gate:~] # service clamav-clamd start

[gate:~] # ls -l /var/run/clamav/clamd.sock

Debian/Ubuntu

root@gate:~# service clamav-freshclam status

root@gate:~# ls /var/lib/clamav/

root@gate:~# service clamav-daemon start

root@gate:~# ls -l /var/run/clamav/clamd.ctl

Использование

Debian/Ubuntu/FreeBSD

gate# cd /tmp

gate# wget http://val.bmstu.ru/unix/virus.zip
  или
gate# fetch http://val.bmstu.ru/unix/virus.zip

gate# clamdscan virus.zip

Журнал

# tail -f /var/log/clamav/clamav.log

# cat /etc/logrotate.d/clamav-daemon
сервис_clamav.1508149635.txt.gz · Последние изменения: 2017/10/16 13:27 — val