标签: clamav

LibClamAV 错误:cli_loaddbdir():在 /var/lib/clamav 中找不到受支持的数据库文件

当我尝试扫描 /home 目录时,出现此错误。

[root@ip-172-31-34-67 ~]# clamscan /home
LibClamAV Error: cli_loaddbdir(): No supported database files found in /var/lib/clamav
ERROR: Can't open file or directory

----------- SCAN SUMMARY -----------
Known viruses: 0
Engine version: 0.103.0
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.004 sec (0 m 0 s)
Start Date: 2021:01:17 17:43:31
End Date:   2021:01:17 17:43:31
[root@ip-172-31-34-67 ~]#
Run Code Online (Sandbox Code Playgroud)

它显示在 /var/lib/clamav 中找到的受支持的数据库文件上,这可能会导致问题?

linux redhat centos clamav

6
推荐指数
2
解决办法
3075
查看次数

当进程不存在时,如何使用 powershell 杀死进程而不出现错误

我想杀死 nodepad 进程(如果存在)。如果我使用这个:

PS C:\> get-process -name notepad | Stop-Process -Force
Run Code Online (Sandbox Code Playgroud)

当进程不存在时,我会收到错误消息。

get-process : Cannot find a process with the name "notepad". Verify the process name and call the cmdlet again.
At line:1 char:1
+ get-process -name notepad | Stop-Process -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (notepad:String) [Get-Process], ProcessCommandException
    + FullyQualifiedErrorId : NoProcessFoundForGivenName,Microsoft.PowerShell.Commands.GetProcessCommand
Run Code Online (Sandbox Code Playgroud)

我觉得它应该是沉默的,因为它不是一个错误,该对象应该为空。

我知道我可以这样做:

PS C:\> get-process | where { $_.processname -eq 'notepad' } | Stop-Process -Force
Run Code Online (Sandbox Code Playgroud)

但我更喜欢一种简单的方法(如果存在的话)。谢谢。

PS:我需要杀死记事本,因为当我非交互式安装 ClamAV 时,它会创建带有用户手册的记事本。我找不到告诉 ClamAV 不要打开用户手册的方法。

windows powershell clamav

5
推荐指数
1
解决办法
7786
查看次数

无法在 Linux 中停止 Clamav 守护进程

我试图在 Linux 中停止 Clamav 服务,但我无法做到这一点。我已经在一个单独的目录中安装了 Clamav。

运行以下命令时:

$ systemctl stop clamav-daemon
Run Code Online (Sandbox Code Playgroud)

我收到此错误消息:

警告:停止 clamav-daemon.service,但它仍然可以被激活: clamav-daemon.socket

运行时:

$ systemctl status clamav-daemon
Run Code Online (Sandbox Code Playgroud)

我得到:

 clamav-daemon.service - Clam AntiVirus userspace daemon
   Loaded: loaded (/usr/lib/systemd/system/clamav-daemon.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2020-04-29 13:23:33 IST; 7s ago
     Docs: man:clamd(8)
           man:clamd.conf(5)
           https://www.clamav.net/documents/
 Main PID: 32213 (clamd)
    Tasks: 1
   CGroup: /system.slice/clamav-daemon.service
           ??32213 /usr/local/sbin/clamd --foreground=true
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激。谢谢。

clam clamav

4
推荐指数
1
解决办法
3700
查看次数

标签 统计

clamav ×3

centos ×1

clam ×1

linux ×1

powershell ×1

redhat ×1

windows ×1