{"id":2278,"date":"2016-03-18T12:55:21","date_gmt":"2016-03-18T04:55:21","guid":{"rendered":"http:\/\/jir.no-ip.org\/wordpress\/?p=2278"},"modified":"2016-03-18T13:09:33","modified_gmt":"2016-03-18T05:09:33","slug":"linux%e9%98%b2%e6%af%92%e8%bb%9f%e9%ab%94-clamav","status":"publish","type":"post","link":"https:\/\/jir.idv.tw\/wordpress\/?p=2278","title":{"rendered":"Linux\u9632\u6bd2\u8edf\u9ad4 ClamAV"},"content":{"rendered":"<p>\u56e0\u70ba\u770b\u5230AVG\u4e0d\u6703\u5728\u958b\u767c\u7d66Linux\u4f7f\u7528\u7684OS<br \/>\n\u6240\u4ee5\u770b\u4e86\u4e00\u4e0b<a href=\"http:\/\/www.av-comparatives.org\/\" target=\"_blank\" rel=\"noopener\">http:\/\/www.av-comparatives.org\/<\/a>\u9632\u6bd2\u8edf\u9ad4\u8a55\u6bd4<br \/>\n\u767c\u73fe\u88e1\u9762\u6709\u4ecb\u7d39Linux\u7528\u7684\u9632\u6bd2\u8edf\u9ad4Report\u8cc7\u6599<br \/>\n\u7531\u65bc\u6211\u6bd4\u8f03\u9700\u8981\u7684\u662fCommand-line\u7684\u529f\u80fd<br \/>\n\u700f\u89bd\u4e86\u4e00\u4e0b \u5c45\u7136\u6709\u4e00\u500b\u6211\u4e0d\u77e5\u9053\u7684\u958b\u6e90\u9632\u6bd2\u8edf\u9ad4\uff08\u6211\u8d85\u5f31\u7684Orz<br \/>\n\u65e9\u77e5\u9053\u5c31\u7528\u9019\u500b\u5c31\u597d\u5566<\/p>\n<p>\u7c21\u55ae\u7684\u627e\u4e86\u4e00\u4e0b\u8cc7\u6599<br \/>\n\u5b98\u65b9\u7db2\u9801\uff1a<a href=\"https:\/\/www.clamav.net\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.clamav.net\/<\/a><br \/>\n\u50cf\u6211\u7684\u662f\u53ef\u4ee5\u7528YUM\u76f4\u63a5\u4e0b\u8f09\u5b89\u88dd<br \/>\n\u6240\u4ee5\u6307\u4ee4\u53ea\u8981\u8f38\u5165\uff1a# <code>yum install -y clamav clamav-update<\/code><br \/>\n\u4ed6\u5c31\u6703\u5b89\u88dd\u5b8c\u6210<\/p>\n<p>\u7136\u5f8c\u5927\u5bb6\u90fd\u77e5\u9053\u7684 \u7b2c\u4e00\u6b65\u8981\u66f4\u65b0\u75c5\u6bd2\u8cc7\u6599\u5eab<br \/>\n\u6253\u300eclam\u300f\u6309TAB<br \/>\n\u7591\uff01\uff1f \u627e\u4e0d\u5230\u50cf\u662fupdate\u7684\u6307\u4ee4<br \/>\n\u5f8c\u4f86\u53c8\u7ffb\u4e86\u4e00\u4e0bgoogle<br \/>\n\u60c3&#8230;\u5c45\u7136\u662f\u8981\u7528\u300efreshclam\u300f\u9019\u500b\u6307\u4ee4<\/p>\n<p>\u7136\u5f8c \u4e5f\u5f97\u77e5\u8981\u5148\u8655\u7406\u76f8\u95dc\u8a2d\u5b9a\u7684\u6a94\u6848<br \/>\n\u6240\u4ee5\u6a94\u6848\u67e5\u4e86\u4e00\u4e0b \u653e\u5728\u300e\/etc\/freshclam.conf\u300f<br \/>\n\u7b2c\u4e00\u6b65\u8981\u5148\u628a\u66f4\u65b0\u7684\u8cc7\u6599\u5eab\u589e\u52a0\u4e00\u4e9b\u653e\u81fa\u7063\u7684\u9023\u7d50<br \/>\n\u6240\u4ee5\u8981\u627e\u300eDatabaseMirror\u300f\u95dc\u9375\u5b57<br \/>\n\u65b0\u589e\u4e0b\u9762\u9019\u5e7e\u500b\uff1a<br \/>\n<code>#DatabaseMirror database.clamav.net \uff08\u8a18\u5f97\u9019\u500b\u52a0\uff03\u865f\u69d3\u6389\uff09<br \/>\nDatabaseMirror clamav.stu.edu.tw<br \/>\nDatabaseMirror db.tw.clamav.net<br \/>\nDatabaseMirror db.us.clamav.net<br \/>\nDatabaseMirror db.local.clamav.net<\/code><br \/>\n\u5b98\u65b9\u7684\u90a3\u500b\u9023\u7d50\u901f\u5ea6\u592a\u6162\u4e86 \u6703\u7b49\u5230\u760b\u6389<\/p>\n<p>\u5b58\u6a94\u96e2\u958b\u4ee5\u5f8c \u5c31\u53ef\u4ee5\u4f7f\u7528\u300efreshclam\u300f\u9019\u500b\u6307\u4ee4<br \/>\n\u8f38\u5165\u4ee5\u5f8c\u3002\u3002\u3002 \u6a5f\u8eca\u52d2 \u9019\u662f\u5565\u9b3c\u8b66\u5831\u756b\u9762<br \/>\n<code>Can't open\/parse the config file \/etc\/freshclam.conf<\/code><br \/>\n\u5929\u6bba\u7684\u6211\u4e0d\u662f\u5df2\u7d93\u8a2d\u5b9a\u597d\u4e86\u561b \u600e\u6703\u627e\u4e0d\u5230\u6a94\u6848&#8230;QQ<\/p>\n<p>\u4f9d\u7136\u9084\u662f\u8981\u7ffb\u842c\u80fd\u7684google<br \/>\n\u539f\u4f86\u662f\u9084\u8981\u628a\u300e\/etc\/freshclam.conf\u300f\u6a94\u6848\u88e1\u9762<br \/>\n\u6709\u500bEXAMPLE\u6558\u8ff0\u8981\u52a0\u4e0a\uff03\u865f\u69d3\u6389 \u800c\u4ed6&#8230;\u5c31\u5728\u958b\u982d\u7b2c\u4e00\u884c&#8230;\uff1dA\uff1d<br \/>\n<code># Comment or remove the line below.<br \/>\n#Example<\/code><\/p>\n<p>\u5b8c\u6210\u5b58\u6a94\u5f8c \u57f7\u884c\u300efreshclam\u300f\u9019\u500b\u6307\u4ee4<br \/>\n\u6b50\uff01\u770b\u4ed6\u5728\u66f4\u65b0\u6a94\u6848 \uff05\u8dd1\u8dd1\u8dd1<br \/>\n\u5b8c\u6210\uff01\uff01\uff08\u5f97\u5230\u5b89\u88ddLinux\u65b0\u9632\u6bd2\u8edf\u9ad4\u7684\u6210\u5c31\uff09<\/p>\n<p>\u57fa\u672c\u6383\u63cf\u7684\u6307\u4ee4\u5982\u4e0b\uff1a<br \/>\n<code>clamscan -r \/<br \/>\nclamscan -r -l ~\/clamscan.log \/ <\/code><\/p>\n<p>\u5176\u4ed6\u76f8\u95dc\u53c3\u8003\u8cc7\u6599\uff1a<br \/>\n<a href=\"https:\/\/www.clamav.net\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.clamav.net\/ <strong>ClamAV\u00ae open source antivirus engine<\/strong><\/a><br \/>\n<a href=\"http:\/\/blog.xuite.net\/tolarku\/blog\/302285776-Linux+%E7%B3%BB%E7%B5%B1%E5%AE%89%E8%A3%9D%E9%98%B2%E6%AF%92+-+ClamAV+-+CentOS\" target=\"_blank\" rel=\"noopener\"><strong>Linux \u7cfb\u7d71\u5b89\u88dd\u9632\u6bd2 &#8211; ClamAV<\/strong> &#8211; CentOS<\/a><br \/>\n<a href=\"http:\/\/askubuntu.com\/questions\/250290\/how-do-i-scan-for-viruses-with-clamav\" target=\"_blank\" rel=\"noopener\">http:\/\/askubuntu.com\/questions\/250290\/<strong>how-do-i-scan-for-viruses-with-clamav<\/strong><\/a><br \/>\n<a href=\"http:\/\/linuxhostingsupport.net\/blog\/error-cant-open-or-parse-the-config-freshclam-conf\" target=\"_blank\" rel=\"noopener\">http:\/\/linuxhostingsupport.net\/blog\/<strong>error-cant-open-or-parse-the-config-freshclam-conf<\/strong><\/a><br \/>\n<a href=\"http:\/\/askubuntu.com\/questions\/526317\/cant-run-freshclam\" target=\"_blank\" rel=\"noopener\">http:\/\/askubuntu.com\/questions\/526317\/<strong>cant-run-freshclam<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u70ba\u770b\u5230AVG\u4e0d\u6703\u5728\u958b\u767c\u7d66Linux\u4f7f\u7528\u7684OS \u6240\u4ee5\u770b\u4e86\u4e00\u4e0bhttp:\/\/www.av-comparatives.org\/\u9632\u6bd2\u8edf\u9ad4\u8a55\u6bd4 \u767c\u73fe\u88e1\u9762\u6709\u4ecb\u7d39Linux\u7528\u7684\u9632\u6bd2\u8edf\u9ad4Report\u8cc7\u6599 \u7531\u65bc\u6211\u6bd4\u8f03\u9700\u8981\u7684\u662fCommand-line\u7684\u529f\u80fd \u700f\u89bd\u4e86\u4e00\u4e0b \u5c45\u7136\u6709\u4e00\u500b\u6211\u4e0d\u77e5\u9053\u7684\u958b\u6e90\u9632\u6bd2\u8edf\u9ad4\uff08\u6211\u8d85\u5f31\u7684Orz \u65e9\u77e5\u9053\u5c31\u7528\u9019\u500b\u5c31\u597d\u5566 \u7c21\u55ae\u7684\u627e\u4e86\u4e00\u4e0b\u8cc7\u6599 \u5b98\u65b9\u7db2\u9801\uff1ahttps:\/\/www.clamav.net\/ \u50cf\u6211\u7684\u662f\u53ef\u4ee5\u7528YUM\u76f4\u63a5\u4e0b\u8f09\u5b89\u88dd \u6240\u4ee5\u6307\u4ee4\u53ea\u8981\u8f38\u5165\uff1a# yum install -y clamav clamav-update \u4ed6\u5c31\u6703\u5b89\u88dd\u5b8c\u6210 \u7136\u5f8c\u5927\u5bb6\u90fd\u77e5\u9053\u7684 \u7b2c\u4e00\u6b65\u8981\u66f4\u65b0\u75c5\u6bd2\u8cc7\u6599\u5eab \u6253\u300eclam\u300f\u6309TAB \u7591\uff01\uff1f \u627e\u4e0d\u5230\u50cf\u662fupdate\u7684\u6307\u4ee4 \u5f8c\u4f86\u53c8\u7ffb\u4e86\u4e00\u4e0bgoogle \u60c3&#8230;\u5c45\u7136\u662f\u8981\u7528\u300efreshclam\u300f\u9019\u500b\u6307\u4ee4 \u7136\u5f8c \u4e5f\u5f97\u77e5\u8981\u5148\u8655\u7406\u76f8\u95dc\u8a2d\u5b9a\u7684\u6a94\u6848 \u6240\u4ee5\u6a94\u6848\u67e5\u4e86\u4e00\u4e0b \u653e\u5728\u300e\/etc\/freshclam.conf\u300f \u7b2c\u4e00\u6b65\u8981\u5148\u628a\u66f4\u65b0\u7684\u8cc7\u6599\u5eab\u589e\u52a0\u4e00\u4e9b\u653e\u81fa\u7063\u7684\u9023\u7d50 \u6240\u4ee5\u8981\u627e\u300eDatabaseMirror\u300f\u95dc\u9375\u5b57 \u65b0\u589e\u4e0b\u9762\u9019\u5e7e\u500b\uff1a #DatabaseMirror database&#8230;. <a href=\"https:\/\/jir.idv.tw\/wordpress\/?p=2278\" class=\"readmore\">Read more (\u5b8c\u6574\u6587\u7ae0\u5167\u5bb9)<span class=\"screen-reader-text\">Linux\u9632\u6bd2\u8edf\u9ad4 ClamAV<\/span><span class=\"fa fa-angle-double-right\" aria-hidden=\"true\"><\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2278","post","type-post","status-publish","format-standard","hentry","category-4","content-layout-excerpt-thumb"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2278"}],"version-history":[{"count":5,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2278\/revisions"}],"predecessor-version":[{"id":2283,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2278\/revisions\/2283"}],"wp:attachment":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}