[root@almalinux ~]# vi /etc/freshclam.conf ※ ウイルス定義ファイル更新設定ファイル編集# Send the RELOAD command to clamd.# Default: no#NotifyClamd /path/to/clamd.confNotifyClamd/etc/clamd.d/scan.conf ← 追加(ウイルス定義ファイル更新をclamdに通知する)[root@almalinux ~]# freshclam ← ウイルス定義ファイル最新化ClamAVupdateprocessstartedatTueMay2614:46:232026dailydatabaseavailablefordownload (remote version:28011)Time:0.4s,ETA:0.0s [========================>] 22.33MiB/22.33MiBTestingdatabase:'/var/lib/clamav/tmp.d3fc426f83/clamav-ea2f1ce1c7eb32669d19f91e7ecb0869.tmp-daily.cvd'...Databasetestpassed.daily.cvdupdated (version: 28011,sigs:355458,f-level:90,builder:svc.clamav-publisher)maindatabaseavailablefordownload (remote version:63)Time:1.5s,ETA:0.0s [========================>] 84.95MiB/84.95MiBTestingdatabase:'/var/lib/clamav/tmp.d3fc426f83/clamav-81410f10f110a76900ab5cd2c9aca311.tmp-main.cvd'...Databasetestpassed.main.cvdupdated (version: 63,sigs:3287027,f-level:90,builder:tomjudge)bytecodedatabaseavailablefordownload (remote version:339)Time:0.0s,ETA:0.0s [========================>] 275.10KiB/275.10KiBTestingdatabase:'/var/lib/clamav/tmp.d3fc426f83/clamav-994341be1fef68a7910341664082c320.tmp-bytecode.cvd'...Databasetestpassed.bytecode.cvdupdated (version: 339,sigs:80,f-level:90,builder:nrandolp)ERROR:NotifyClamd:Nocommunicationsocketspecifiedin/etc/clamd.d/scan.confERROR:Can't send to clamd: Socket operation on non-socket
Clam AntiVirus設定
[root@almalinux ~]# vi /etc/freshclam.conf ※ Clam AntiVirus設定ファイル編集# Run as another user (clamd must be started by root for this option to work)# Default: don't drop privileges#User clamscan ← 行頭に#を追加してコメントアウト(root権限で動作するようにする)# Path to a local socket file the daemon will listen on.# Default: disabled (must be specified by a user)#LocalSocket /run/clamd.scan/clamd.sockLocalSocket/run/clamd.scan/clamd.sock ← 行頭の#を削除してコメント解除
コメント