我正试图按照
blog.dutchcoders.io/installing-clamav-from-source/
除了最后一步,一切都很完美,
夹紧&
当我运行上面的命令时,它将显示
错误:请定义服务器类型(本地和/或TCP)。
当我使用命令
数独扫描-v
我得到的输出是
错误:无法查找: Servname不支持ai_socktype
我遵循了启动ClamAV守护进程时出错中的所有解决方案,但没有希望。还有别的办法解决这个问题吗?
发布于 2016-04-12 10:21:22
通过按下面的方式编辑clamd.conf,这个问题解决了
# Log additional information about the infected file, such as its
# size and hash, together with the virus name.
#ExtendedDetectionInfo yes
# This option allows you to save a process identifier of the listening
# daemon (main thread).
# Default: disabled
PidFile /var/run/clamd.pid
# Optional path to the global temporary directory.
# Default: system specific (usually /tmp or /var/tmp).
TemporaryDirectory /var/tmp
# Path to the database directory.
# Default: hardcoded (depends on installation options)
DatabaseDirectory /usr/local/share/clamav
# Only load the official signatures published by the ClamAV project.
# Default: no
#OfficialDatabaseOnly no
# The daemon can work in local mode, network mode or both.
# Due to security reasons we recommend the local mode.
# Path to a local socket file the daemon will listen on.
# Default: disabled (must be specified by a user)
LocalSocket /tmp/clamd.socket现在,如果我输入‘箝位&’,它是显示
3. 12859
然后“sudo service clamav-daemon start”显示。
3.完成夹紧
然后显示“拼贴扫描-v”
/usr/local/等: OK -扫描摘要-扫描摘要
然后显示“拼贴扫描-V”
ClamAV 0.99.1/21490/Tue 4月12日08:04:23 2016年
https://askubuntu.com/questions/756512
复制相似问题