mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
Update configuration-antivirus.rst
This commit is contained in:
@@ -36,7 +36,7 @@ it's a good idea to review the ClamAV documentation and your settings in
|
||||
|
||||
Red Hat 7, CentOS 7
|
||||
On Red Hat 7 and related systems you must install the Extra Packages for
|
||||
Enterprise Linux (EPEL) repository, and then install ClamAV::.
|
||||
Enterprise Linux (EPEL) repository, and then install ClamAV::
|
||||
|
||||
yum install epel-release
|
||||
yum install clamav clamav-scanner clamav-scanner-systemd clamav-server
|
||||
@@ -51,13 +51,13 @@ freshclam.conf`` explain all the options. Refer to ``/etc/passwd`` and
|
||||
First work through ``/etc/freshclam.conf`` and configure your options.
|
||||
``freshclam`` updates your malware database, so you want it to run frequently to
|
||||
get updated malware signatures. Run it manually post-installation to download
|
||||
your first set of malware signatures::.
|
||||
your first set of malware signatures::
|
||||
|
||||
freshclam
|
||||
|
||||
The EPEL packages do not include an init file for ``freshclam``, so the quick
|
||||
and easy way to set it up for regular checks is with a cron job. This example
|
||||
runs it every hour at 47 minutes past the hour::.
|
||||
runs it every hour at 47 minutes past the hour::
|
||||
|
||||
# m h dom mon dow command
|
||||
47 * * * * /usr/bin/freshclam --quiet
|
||||
@@ -66,7 +66,7 @@ Please avoid any multiples of 10, because those are when the ClamAV servers are
|
||||
hit the hardest for updates.
|
||||
|
||||
Next, edit ``/etc/clamd.d/scan.conf``. When you're finished you must enable
|
||||
the ``clamd`` service file and start ``clamd``::.
|
||||
the ``clamd`` service file and start ``clamd``::
|
||||
|
||||
systemctl enable clamd@scan.service
|
||||
systemctl start clamd@scan.service
|
||||
@@ -114,7 +114,7 @@ ClamAV runs in one of three modes:
|
||||
Daemon (Socket)
|
||||
ownCloud should detect your ``clamd`` socket and fill in the ``Socket``
|
||||
field. This is the ``LocalSocket`` option in ``clamd.conf``. You can
|
||||
run ``netstat`` to verify::.
|
||||
run ``netstat`` to verify::
|
||||
|
||||
netstat -a|grep clam
|
||||
unix 2 [ ACC ] STREAM LISTENING 15857 /var/run/clamav/clamd.ctl
|
||||
|
||||
Reference in New Issue
Block a user