我曾尝试在linux centos中安装clamav,但无法成功,所以任何人都提供了安装clamav杀毒软件的程序并对其进行测试。
提前致谢
答案 0 :(得分:1)
答案 1 :(得分:1)
vim /etc/clamd.conf
ExtendedDetectionInfo yes
ExcludePath /usr/local/maldetect/
DetectPUA yes
chkconfig clamd on
freshclam
service clamd start
vim /etc/cron.daily/daily-clamscan
#!/bin/bash
SCAN_DIR="/"
LOG_FILE="/var/log/clamav/daily-clamscan.log"
/usr/bin/clamscan -i -r $SCAN_DIR >> $LOG_FILE
sudo chmod +x /etc/cron.daily/daily-clamscan
vim /etc/logrotate.d/daily-clamscan
/var/log/clamav/daily-clamscan.log {
missingok
notifempty
create 644 clam clam
}
jobs
这就是我如何在我的机器上安装它。这里有一些很好的快速命令,或者您可以使用cron手动运行它。我还安装了Linux恶意软件检测(LMD),因此我可以为扫描做更多的事情。
clamscan -r --bell -i / &
命令查看状态import multiprocessing
import time
import signal
def init_worker():
signal.signal(signal.SIGINT, signal.SIG_IGN)
def worker():
while(True):
time.sleep(1.1234)
print "Working..."
if __name__ == "__main__":
pool = multiprocessing.Pool(10, init_worker)
result = []
for i in range(10):
result.append(pool.apply_async(worker))
try:
while True:
time.sleep(0.5)
if all([r.ready() for r in result]):
break
except KeyboardInterrupt:
pool.terminate()
pool.join()
else:
pool.close()
pool.join()