{"id":3645,"date":"2018-08-13T14:08:24","date_gmt":"2018-08-13T06:08:24","guid":{"rendered":"https:\/\/www.ldhost.cn\/jc\/?p=3645"},"modified":"2018-08-13T14:08:24","modified_gmt":"2018-08-13T06:08:24","slug":"magento%e6%95%b0%e6%8d%ae%e5%ba%93%e4%b8%ad%e9%82%a3%e4%ba%9b%e6%95%b0%e6%8d%ae%e5%ba%93%e8%a1%a8%e5%8f%af%e4%bb%a5%e6%b8%85%e7%a9%ba","status":"publish","type":"post","link":"https:\/\/www.ldhost.cn\/jc\/weberror\/3645.html","title":{"rendered":"Magento\u6570\u636e\u5e93\u4e2d\u90a3\u4e9b\u6570\u636e\u5e93\u8868\u53ef\u4ee5\u6e05\u7a7a"},"content":{"rendered":"<p>\u968f\u7740Magento\u7f51\u7ad9\u8bbf\u95ee\u91cf\u7684\u589e\u52a0\uff0cMagento\u6570\u636e\u5e93\u4e5f\u8d8a\u6765\u8d8a\u5927\u4e86\uff0c\u751a\u81f3\u6709\u51e0\u4e2aG\uff0c\u76f4\u63a5\u540e\u679c\uff1a<br \/>\n1.\u5f71\u54cd\u7f51\u7ad9\u548c\u6570\u636e\u5e93\u6027\u80fd\uff1b<br \/>\n2.\u5907\u4efd\/\u6062\u590d\u6570\u636e\u5e93\u82b1\u8d39\u7684\u65f6\u95f4\u589e\u52a0\u4e86\uff1b<br \/>\n3.\u5360\u7528\u78c1\u76d8\u7a7a\u95f4\uff1b<br \/>\n4.\u51fa\u73b0\u4e00\u4e9b\u8bbe\u7f6e\u4ea7\u54c1\u4e0d\u663e\u793a\u7684\u95ee\u9898<\/p>\n<p>Magento\u6570\u636e\u5e93\u8fc5\u901f\u81a8\u80c0\uff0c\u4e3b\u8981\u662f\u7531\u4e8e\u4e00\u4e9b\u65e5\u5fd7\u6570\u636e\u7684\u5267\u589e\uff0c\u53ef\u4ee5\u901a\u8fc7Magento\u81ea\u8eab\u7684cron\u5b9a\u65f6\u6e05\u7406\u65e5\u5fd7\u3002<br \/>\n\u53e6\u5916\u4e00\u79cd\u53c8\u5feb\u53c8\u597d\u7684\u529e\u6cd5\u662f\u6267\u884cSQL\u6e05\u7406\uff08<span style=\"color: #ff0000;\">\u8bf7\u5148\u5907\u4efd\u4e0b\u6570\u636e\u5e93\uff0c\u4ee5\u514d\u51fa\u9519<\/span>\uff09\uff0c\u5982\u4e0b\uff1a<br \/>\ntruncate dataflow_batch_export;<br \/>\ntruncate dataflow_batch_import;<br \/>\ntruncate log_customer;<br \/>\ntruncate log_quote;<br \/>\ntruncate log_summary;<br \/>\ntruncate log_summary_type;<br \/>\ntruncate log_url;<br \/>\ntruncate log_url_info;<br \/>\ntruncate log_visitor;<br \/>\ntruncate log_visitor_info;<br \/>\ntruncate log_visitor_online;<br \/>\ntruncate report_viewed_product_index;<br \/>\ntruncate report_compared_product_index;<br \/>\ntruncate report_event;<br \/>\nset foreign_key_checks = 0;<br \/>\ntruncate index_process_event;<br \/>\ntruncate index_event;<br \/>\nset foreign_key_checks = 1;<\/p>\n<p>\u89e3\u51b3\u4e86\u4e0a\u8ff0\u95ee\u9898\uff0c\u6211\u4eec\u8981\u600e\u4e48\u6837\u53ef\u4ee5\u907f\u514d\u6570\u636e\u5e93\u65e5\u5fd7\u7684\u589e\u52a0\u5462\uff1f<br \/>\n\u6211\u4eec\u53ef\u4ee5\u8bbe\u7f6emagento\u81ea\u52a8\u6e05\u7a7alog\uff0c\u65b9\u6cd5\u5982\u4e0b\uff1a<br \/>\n1) \u767b\u5f55\u4f60\u7684magento\u540e\u53f0\u8fdb\u5165 System -&gt;\u00a0 Configuration<br \/>\n2) \u5728\u5de6\u680f\u8fdb\u5165 Advanced -&gt; System<br \/>\n3) \u6253\u5f00 Log Cleaning<br \/>\n4) \u8bbe\u7f6e \u201csave log, days\u201d \u5230\u4e00\u4e2a\u6570\u503c, \u8fd9\u4e2a\u7684\u5355\u4f4d\u662f\u5929\uff0c\u6211\u89c9\u5f97\u51e0\u5929\u6e05\u7a7a\u4e00\u6b21\u5c31\u597d\u4e86<br \/>\n5) \u8bbe\u7f6e\u6fc0\u6d3b\u81ea\u52a8\u6e05\u7a7alog\u8bbe\u7f6e<\/p>\n<p>\u5982\u4e0b\u56fe\u4e3a\u8bbe\u7f6e\u6bcf\u5929\u81ea\u52a8\u6e05\u7a7a\u6211\u7684magento\u6570\u636e\u5e93log\u3002\u8fd9\u91cc\u6e05\u7406\u7684\u65f6\u95f4\u6bb5\u8fd8\u662f\u6bd4\u8f83\u5c11\u4eba\u8bbf\u95ee\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u8282\u7701\u670d\u52a1\u5668\u7684\u5f00\u9500\uff0c\u7136\u540e\u662f\u53ef\u4ee5\u907f\u514d\u524d\u53f0\u5728\u7ebf\u5ba2\u6237\u7684\u4e00\u4e9b\u6570\u636e\u4ea7\u751f\u5f02\u5e38\u3002<\/p>\n<p><a href=\"https:\/\/www.ldhost.cn\/jc\/wp-content\/uploads\/2018\/08\/mg13.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3646\" src=\"https:\/\/www.ldhost.cn\/jc\/wp-content\/uploads\/2018\/08\/mg13.jpg\" alt=\"Magento\u6570\u636e\u5e93\u8868\u6e05\u7a7a\" width=\"602\" height=\"214\" srcset=\"https:\/\/www.ldhost.cn\/jc\/wp-content\/uploads\/2018\/08\/mg13.jpg 602w, https:\/\/www.ldhost.cn\/jc\/wp-content\/uploads\/2018\/08\/mg13-300x107.jpg 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/a><br \/>\n\u56fe\u4e2d\u8868\u793a\u7684\u610f\u601d\uff0clog\u4fdd\u5b58\u65f6\u95f4\u4e3a\uff1a7\u5929\uff0c\u5f00\u542f\u81ea\u52a8\u6e05\u7406\u7f13\u5b58\uff1a\u662f\uff0c\u6e05\u7406\u5f00\u59cb\u65f6\u95f4\uff1a0\u65f6\uff0c\u6e05\u7406\u7684\u9891\u7387\uff1a\u4e00\u5468<\/p>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u907f\u514d\u7a7a\u95f4\u6d6a\u8d39\u548c\u63d0\u9ad8\u7f51\u7ad9\u8fd0\u884c\u901f\u5ea6\u3002<\/p>\n<div><img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/images\/ad-845-3.png\" alt=\"\u56fe\u7247\u63cf\u8ff0\" \/><\/div>","protected":false},"excerpt":{"rendered":"<p>\u968f\u7740Magento\u7f51\u7ad9\u8bbf\u95ee\u91cf\u7684\u589e\u52a0\uff0cMagento\u6570\u636e\u5e93\u4e5f\u8d8a\u6765\u8d8a\u5927\u4e86\uff0c\u751a\u81f3\u6709\u51e0\u4e2aG\uff0c\u76f4\u63a5\u540e\u679c\uff1a 1.\u5f71\u54cd\u7f51\u7ad9\u548c\u6570\u636e\u5e93\u6027\u80fd\uff1b 2.\u5907\u4efd\/\u6062\u590d\u6570\u636e\u5e93\u82b1\u8d39\u7684\u65f6\u95f4\u589e\u52a0\u4e86\uff1b 3.\u5360\u7528\u78c1\u76d8\u7a7a\u95f4\uff1b 4.\u51fa\u73b0\u4e00\u4e9b\u8bbe\u7f6e\u4ea7\u54c1\u4e0d\u663e\u793a\u7684\u95ee\u9898 Magento\u6570\u636e\u5e93\u8fc5\u901f\u81a8\u80c0\uff0c\u4e3b\u8981\u662f\u7531\u4e8e\u4e00\u4e9b\u65e5\u5fd7\u6570\u636e\u7684\u5267\u589e\uff0c\u53ef\u4ee5\u901a\u8fc7Magento\u81ea\u8eab\u7684cron\u5b9a\u65f6\u6e05\u7406\u65e5\u5fd7\u3002 \u53e6\u5916\u4e00\u79cd\u53c8\u5feb\u53c8\u597d\u7684\u529e\u6cd5\u662f\u6267\u884cSQL\u6e05\u7406\uff08\u8bf7\u5148\u5907\u4efd\u4e0b\u6570\u636e\u5e93\uff0c\u4ee5\u514d\u51fa\u9519\uff09\uff0c\u5982\u4e0b\uff1a truncate dataflow_batch_export; truncate dataflow_batch_import; truncate log_customer; truncate &#8230; <a href=\"https:\/\/www.ldhost.cn\/jc\/weberror\/3645.html\" class=\"readmore\">\u9605\u8bfb\u5168\u6587<span class=\"screen-reader-text\">Magento\u6570\u636e\u5e93\u4e2d\u90a3\u4e9b\u6570\u636e\u5e93\u8868\u53ef\u4ee5\u6e05\u7a7a<\/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":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-3645","post","type-post","status-publish","format-standard","hentry","category-weberror","content-layout-excerpt-thumb"],"_links":{"self":[{"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/posts\/3645","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/comments?post=3645"}],"version-history":[{"count":1,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/posts\/3645\/revisions"}],"predecessor-version":[{"id":3647,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/posts\/3645\/revisions\/3647"}],"wp:attachment":[{"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/media?parent=3645"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/categories?post=3645"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/tags?post=3645"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}