1.安装杀毒软件
[root@centos ~]# yum -y install clamav clamav-server-systemd clamav-update clamav-scanner-systemd
2.病毒库更新相关设置
[root@centos ~]# vi /etc/freshclam.conf #病毒库更新设定文件配置
# Send the RELOAD command to clamd.
# Default: no
#NotifyClamd /path/to/clamd.conf
NotifyClamd /etc/clamd.d/scan.conf
[root@centos ~]# freshclam
ClamAV update process started at Sun Oct 16 18:05:20 2022
daily database available for download (remote version: 26691)
Time: 12.7s, ETA: 0.0s [========================>] 57.27MiB/57.27MiB
Testing database: '/var/lib/clamav/tmp.102a221a66/clamav-f8b1095191d9f71d405e52c6f21f9ed8.tmp-daily.cvd' ...
Database test passed.
daily.cvd updated (version: 26691, sigs: 2008286, f-level: 90, builder: raynman)
main database available for download (remote version: