{"id":658,"date":"2021-04-15T09:48:06","date_gmt":"2021-04-15T01:48:06","guid":{"rendered":"https:\/\/blog.espnlol.com\/?p=658"},"modified":"2022-04-20T18:19:57","modified_gmt":"2022-04-20T10:19:57","slug":"linux%e6%9d%80%e6%af%92%e8%bd%af%e4%bb%b6clamav","status":"publish","type":"post","link":"https:\/\/blog.espnlol.com\/?p=658","title":{"rendered":"linux\u6740\u6bd2\u8f6f\u4ef6clamav"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\u4e00\u3001\u7b80\u4ecb<\/h3>\n\n\n\n<p>ClamAV\uff08<a rel=\"noreferrer noopener\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/links.jianshu.com\/go%3Fto%3Dhttp%253A%252F%252Fwww.clamav.net%252F\" target=\"_blank\">Clam AntiVirus<\/a>\uff09\u662fLinux\u5e73\u53f0\u4e0a\u7684\u5f00\u6e90\u75c5\u6bd2\u626b\u63cf\u7a0b\u5e8f\uff0c\u4e3b\u8981\u5e94\u7528\u4e8e\u90ae\u4ef6\u670d\u52a1\u5668\uff0c\u91c7\u7528\u591a\u7ebf\u7a0b\u540e\u53f0\u64cd\u4f5c\uff0c\u53ef\u4ee5\u81ea\u52a8\u5347\u7ea7\u75c5\u6bd2\u5e93\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e8c\u3001\u5b89\u88c5<\/h3>\n\n\n\n<p>yum\u5b89\u88c5<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">yum install -y epel-release\nyum install clamav clamav-server clamav-data clamav-update clamav-filesystem clamav-scanner-sys<\/pre>\n\n\n\n<p>\u79bb\u7ebf\u75c5\u6bd2\u5e93\u66f4\u65b0<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">1\u3001\u4e0b\u8f7d\u79bb\u7ebf\u6700\u65b0\u75c5\u6bd2\u5e93\nwget http:\/\/db.local.clamav.net\/daily.cvd\nwget http:\/\/db.local.clamav.net\/main.cvd\nwget http:\/\/db.local.clamav.net\/bytecode.cvd\n2\u3001\u66ff\u6362\u75c5\u6bd2\u5e93\nrm -rf \/var\/lib\/clamav\/*.cvd\nmv *.cvd \/var\/lib\/clamav\/<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e09\u3001\u4f7f\u7528<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\u53c2\u6570\u7b80\u4ecb\n\u901a\u7528\uff0c\u4e0d\u4f9d\u8d56\u670d\u52a1\uff0c\u547d\u4ee4\u53c2\u6570\u8f83\u591a\uff0c\u6267\u884c\u901f\u5ea6\u7a0d\u6162\uff1b  \n\u7528clamscan\u626b\u63cf\uff0c\u4e0d\u9700\u8981\u5f00\u59cb\u670d\u52a1\u5c31\u80fd\u4f7f\u7528\uff1b  \n-r \u9012\u5f52\u626b\u63cf\u5b50\u76ee\u5f55  \n-i \u53ea\u663e\u793a\u53d1\u73b0\u7684\u75c5\u6bd2\u6587\u4ef6  \n--no-summary \u4e0d\u663e\u793a\u7edf\u8ba1\u4fe1\u606f\n\n-r\/--recursive[=yes\/no]             \u6240\u6709\u6587\u4ef6  \n--log=FILE\/-l FILE        \u589e\u52a0\u626b\u63cf\u62a5\u544a  \n--move [\u8def\u5f84]          \u79fb\u52a8\u75c5\u6bd2\u6587\u4ef6\u81f3..  \n--remove [\u8def\u5f84]              \u5220\u9664\u75c5\u6bd2\u6587\u4ef6  \n--quiet                  \u53ea\u8f93\u51fa\u9519\u8bef\u6d88\u606f  \n--infected\/-i                       \u53ea\u8f93\u51fa\u611f\u67d3\u6587\u4ef6  \n--suppress-ok-results\/-o                   \u8df3\u8fc7\u626b\u63cfOK\u7684\u6587\u4ef6  \n--bell                         \u626b\u63cf\u5230\u75c5\u6bd2\u6587\u4ef6\u53d1\u51fa\u8b66\u62a5\u58f0\u97f3  \n--unzip(unrar)                 \u89e3\u538b\u538b\u7f29\u6587\u4ef6\u626b\u63cf\n\n#\u626b\u63cf\u6240\u6709\u6587\u4ef6\uff0c\u53d1\u73b0\u75c5\u6bd2\u62a5\u8b66\u5e76\u8bb0\u5f55\u5230\/tmp\/clamav.log\nclamscan -r --bell --exclude-dir=^\/sys --exclude-dir=^\/dev --exclude-dir=^\/proc -i  \/ >> \/tmp\/clamav.log\n\n#\u6dfb\u52a0\u5b9a\u65f6\u4efb\u52a1\ncrontab -e\n00 03 * * * \/usr\/bin\/clamscan -r --bell --exclude-dir=^\/sys --exclude-dir=^\/dev --exclude-dir=^\/proc -i  \/ >> \/tmp\/clamav.log<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u7b80\u4ecb ClamAV\uff08Clam AntiVirus\uff09\u662fLinux\u5e73\u53f0\u4e0a\u7684\u5f00\u6e90\u75c5 &hellip; <a href=\"https:\/\/blog.espnlol.com\/?p=658\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-658","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=658"}],"version-history":[{"count":1,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/658\/revisions"}],"predecessor-version":[{"id":659,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/658\/revisions\/659"}],"wp:attachment":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}