{"id":2283,"date":"2025-06-11T00:13:53","date_gmt":"2025-06-10T16:13:53","guid":{"rendered":"https:\/\/www.zhaozhao123.cn\/wpcms\/wpdt\/2283.html"},"modified":"2025-06-11T00:13:53","modified_gmt":"2025-06-10T16:13:53","slug":"%e5%a6%82%e4%bd%95%e4%bf%ae%e5%a4%8dwordpress%e4%b8%ad%e7%9a%84err_connection_reset%e9%94%99%e8%af%af","status":"publish","type":"post","link":"https:\/\/www.zhaozhao123.cn\/wpcms\/post\/2283.html","title":{"rendered":"\u5982\u4f55\u4fee\u590dWordPress\u4e2d\u7684ERR_CONNECTION_RESET\u9519\u8bef"},"content":{"rendered":"<div class=\"wp-block-columns p-0 border is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-columns px-4 py-3 border-bottom has-background is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\" style=\"background:linear-gradient(243deg,rgb(238,238,238) 0%,rgba(58,166,242,0.15) 100%)\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-6c531013 wp-block-group-is-layout-flex\">\r\n<figure class=\"wp-block-image size-thumbnail is-resized is-style-rounded is-style-rounded--1\"><img decoding=\"async\" src=\"https:\/\/www.zhaozhao123.cn\/myitems\/images\/sites16\/2025\/06\/dyA-1-400x300.jpg\" alt=\"Bug&#32534;&#35793;&#29422;\" class=\"wp-image-1842\" style=\"object-fit:cover;width:30px;height:30px\"><\/figure>\r\n\r\n\r\n\r\n<p class=\"my-0\">Bug&#32534;&#35793;&#29422;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-columns px-xl-5 px-4 py-xl-4 py-3 is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<p>&#35201;&#35299;&#20915;WordPress&#32593;&#31449;&#19978;&#30340;<code>ERR_CONNECTION_RESET<\/code>&#38169;&#35823;&#65292;&#39318;&#20808;&#38656;&#35201;&#29702;&#35299;&#36825;&#20010;&#38169;&#35823;&#30340;&#20855;&#20307;&#21547;&#20041;&#21644;&#21487;&#33021;&#30340;&#21407;&#22240;&#12290;&#24403;&#27983;&#35272;&#22120;&#36830;&#25509;&#21040;&#26381;&#21153;&#22120;&#26102;&#65292;&#22914;&#26524;&#36935;&#21040;&#32593;&#32476;&#38382;&#39064;&#25110;&#26381;&#21153;&#22120;&#31471;&#30340;&#36830;&#25509;&#34987;&#24847;&#22806;&#20851;&#38381;&#65288;&#21363;&#25152;&#35859;&#30340;&ldquo;&#37325;&#32622;&rdquo;&#65289;&#65292;&#23601;&#20250;&#24341;&#21457;&#36825;&#31181;&#38169;&#35823;&#12290;<\/p>\n<h3>1. &#30830;&#35748;&#38382;&#39064;<\/h3>\n<ul>\n<li><strong>&#26816;&#26597;&#32593;&#32476;&#29366;&#20917;<\/strong>&#65306;&#30830;&#20445;&#24744;&#30340;&#32593;&#32476;&#36830;&#25509;&#31283;&#23450;&#65292;&#27809;&#26377;&#26029;&#24320;&#12290;<\/li>\n<li><strong>&#28165;&#38500;&#32531;&#23384;<\/strong>&#65306;&#26377;&#26102;&#27983;&#35272;&#22120;&#32531;&#23384;&#21487;&#33021;&#20250;&#23548;&#33268;&#38382;&#39064;&#12290;&#23581;&#35797;&#28165;&#38500;&#27983;&#35272;&#22120;&#32531;&#23384;&#24182;&#37325;&#26032;&#21152;&#36733;&#32593;&#31449;&#12290;<\/li>\n<li><strong>&#37325;&#21551;&#36335;&#30001;&#22120;<\/strong>&#65306;&#26377;&#26102;&#20505;&#36335;&#30001;&#22120;&#30340;&#38382;&#39064;&#20063;&#20250;&#24341;&#36215;&#27492;&#31867;&#38169;&#35823;&#12290;<\/li>\n<\/ul>\n<h3>2. &#26597;&#25214;&#35299;&#20915;&#26041;&#26696;<\/h3>\n<ul>\n<li><strong>&#26356;&#26032;PHP&#29256;&#26412;<\/strong>&#65306;&#26087;&#29256;PHP&#21487;&#33021;&#23384;&#22312;&#23433;&#20840;&#28431;&#27934;&#65292;&#21319;&#32423;&#21040;&#26368;&#26032;&#29256;&#26412;&#21487;&#20197;&#20943;&#23569;&#27492;&#31867;&#38169;&#35823;&#30340;&#21457;&#29983;&#12290;<\/li>\n<li><strong>&#31105;&#29992;&#38450;&#28779;&#22681;<\/strong>&#65306;&#20020;&#26102;&#31105;&#29992;&#38450;&#28779;&#22681;&#30475;&#26159;&#21542;&#33021;&#35299;&#20915;&#38382;&#39064;&#12290;<\/li>\n<li><strong>&#27979;&#35797;DNS&#35774;&#32622;<\/strong>&#65306;&#30830;&#20445;DNS&#35299;&#26512;&#27491;&#30830;&#26080;&#35823;&#12290;<\/li>\n<\/ul>\n<h3>&#31034;&#20363;&#20195;&#30721;&#19982;&#27493;&#39588;&#65306;<\/h3>\n<p>&#20551;&#35774;&#24744;&#24050;&#32463;&#30830;&#35748;&#20102;&#19978;&#36848;&#25490;&#26597;&#27493;&#39588;&#21518;&#65292;&#20173;&#28982;&#36935;&#21040;&#20102;<code>ERR_CONNECTION_RESET<\/code>&#38169;&#35823;&#65292;&#25509;&#19979;&#26469;&#25105;&#20204;&#20197;&#20462;&#25913;WordPress&#37197;&#32622;&#20026;&#20363;&#26469;&#35299;&#20915;&#36825;&#20010;&#38382;&#39064;&#12290;<\/p>\n<h4>&#27493;&#39588;&#19968;&#65306;&#26816;&#26597;&#24403;&#21069;&#37197;&#32622;&#25991;&#20214;<\/h4>\n<ol>\n<li>&#25171;&#24320;WordPress&#30340;&#20027;&#30446;&#24405;&#19979;&#30340;<code>wp-config.php<\/code>&#25991;&#20214;&#12290;<\/li>\n<li>&#26597;&#25214;&#20197;&#19979;&#34892;&#65306;\n<pre><code class=\"language-php\">define('WP_HOME', 'http:\/\/example.com');\ndefine('WP_SITEURL', 'http:\/\/example.com');<\/code><\/pre><\/li>\n<li>&#22914;&#26524;&#36825;&#20123;&#36335;&#24452;&#19981;&#26159;&#24744;&#24819;&#35201;&#30340;&#65292;&#35831;&#20462;&#25913;&#20026;&#27491;&#30830;&#30340;&#22495;&#21517;&#25110;IP&#22320;&#22336;&#12290;<\/li>\n<\/ol>\n<h4>&#27493;&#39588;&#20108;&#65306;&#21551;&#29992;&#25110;&#35843;&#25972;&#26085;&#24535;&#35760;&#24405;<\/h4>\n<ol>\n<li>\n<p>&#22312;<code>wp-config.php<\/code>&#20013;&#28155;&#21152;&#22914;&#19979;&#20195;&#30721;&#65306;<\/p>\n<pre><code class=\"language-php\">define('WP_DEBUG', true);\ndefine('WP_DEBUG_LOG', true); \/\/ &#21551;&#21160;&#35843;&#35797;&#26085;&#24535;\ndefine('WP_DEBUG_DISPLAY', false); \/\/ &#19981;&#26174;&#31034;&#38169;&#35823;&#20449;&#24687;<\/code><\/pre>\n<\/li>\n<li>\n<p>&#36825;&#26679;&#20570;&#21487;&#20197;&#35753;WordPress&#35760;&#24405;&#25152;&#26377;&#38169;&#35823;&#12289;&#35686;&#21578;&#21644;&#25552;&#31034;&#65292;&#24110;&#21161;&#24744;&#26356;&#22909;&#22320;&#35786;&#26029;&#38382;&#39064;&#25152;&#22312;&#12290;<\/p>\n<\/li>\n<\/ol>\n<h4>&#27493;&#39588;&#19977;&#65306;&#25191;&#34892;&#20462;&#22797;&#25805;&#20316;<\/h4>\n<ol>\n<li>&#20351;&#29992;FTP&#23458;&#25143;&#31471;&#25110;&#32773;&#36890;&#36807;cPanel&#31649;&#29702;&#25511;&#21046;&#38754;&#26495;&#19978;&#20256;&#19968;&#20010;&#26032;&#30340;<code>wp-config.php<\/code>&#25991;&#20214;&#21040;&#26681;&#30446;&#24405;&#19979;&#12290;<\/li>\n<li>&#23558;&#26032;&#25991;&#20214;&#30340;&#20869;&#23481;&#26367;&#25442;&#25481;&#21407;<code>wp-config.php<\/code>&#25991;&#20214;&#30340;&#20869;&#23481;&#12290;<\/li>\n<\/ol>\n<h4>&#27493;&#39588;&#22235;&#65306;&#39564;&#35777;&#20462;&#22797;<\/h4>\n<ol>\n<li>&#26816;&#26597;&#31449;&#28857;&#21518;&#21488;&#26159;&#21542;&#26377;&#20219;&#20309;&#26032;&#30340;&#38169;&#35823;&#25253;&#21578;&#12290;<\/li>\n<li>&#27983;&#35272;&#22120;&#35775;&#38382;&#31449;&#28857;&#26102;&#65292;&#26597;&#30475;&#26159;&#21542;&#26377;&#26032;&#30340;&#38169;&#35823;&#20449;&#24687;&#20986;&#29616;&#12290;<\/li>\n<\/ol>\n<h3>&#25928;&#26524;<\/h3>\n<p>&#36890;&#36807;&#20197;&#19978;&#27493;&#39588;&#65292;&#24744;&#24212;&#35813;&#33021;&#22815;&#25104;&#21151;&#22320;&#35299;&#20915;WordPress&#32593;&#31449;&#19978;<code>ERR_CONNECTION_RESET<\/code>&#38169;&#35823;&#30340;&#38382;&#39064;&#12290;&#36825;&#21253;&#25324;&#20102;&#26356;&#25913;&#25968;&#25454;&#24211;&#36335;&#24452;&#12289;&#21551;&#29992;&#35843;&#35797;&#27169;&#24335;&#20197;&#21450;&#19978;&#20256;&#26032;&#30340;&#37197;&#32622;&#25991;&#20214;&#31561;&#25805;&#20316;&#12290;&#27599;&#27425;&#21457;&#24067;&#26032;&#29256;&#26412;&#30340;WordPress&#20027;&#39064;&#25110;&#25554;&#20214;&#26102;&#65292;&#24314;&#35758;&#20877;&#27425;&#26816;&#26597;&#24182;&#22788;&#29702;&#21487;&#33021;&#20986;&#29616;&#30340;&#31867;&#20284;&#38169;&#35823;&#12290;<\/p>\n<p>&#24076;&#26395;&#20197;&#19978;&#30340;&#25351;&#21335;&#23545;&#24744;&#26377;&#25152;&#24110;&#21161;&#65281;&#22914;&#26524;&#26377;&#20854;&#20182;&#38382;&#39064;&#65292;&#27426;&#36814;&#38543;&#26102;&#25552;&#38382;&#12290;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div><div class=\"wp-block-columns p-0 border is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-columns px-4 py-3 border-bottom has-background is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\" style=\"background:linear-gradient(243deg,rgb(238,238,238) 0%,rgba(58,166,242,0.15) 100%)\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-6c531013 wp-block-group-is-layout-flex\">\r\n<figure class=\"wp-block-image size-thumbnail is-resized is-style-rounded is-style-rounded--2\"><img decoding=\"async\" src=\"https:\/\/www.zhaozhao123.cn\/myitems\/images\/sites16\/2025\/06\/zp-400x300.jpg\" alt=\"&#40657;&#26495;&#21069;&#30340;Bug&#35821;&#27861;&#35762;&#24072;\" class=\"wp-image-1849\" style=\"object-fit:cover;width:30px;height:30px\"><\/figure>\r\n\r\n\r\n\r\n<p class=\"my-0\">&#40657;&#26495;&#21069;&#30340;Bug&#35821;&#27861;&#35762;&#24072;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-columns px-xl-5 px-4 py-xl-4 py-3 is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<p>ERR_CONNECTION_RESET&#38169;&#35823;&#36890;&#24120;&#21457;&#29983;&#22312;&#26381;&#21153;&#22120;&#26080;&#27861;&#22788;&#29702;&#36830;&#25509;&#35831;&#27714;&#26102;&#12290;&#36825;&#31181;&#38169;&#35823;&#21487;&#33021;&#20250;&#23548;&#33268;&#32593;&#31449;&#23849;&#28291;&#25110;&#26080;&#27861;&#27491;&#24120;&#24037;&#20316;&#12290;&#20197;&#19979;&#26159;&#19968;&#20123;&#21487;&#33021;&#35299;&#20915;&#38382;&#39064;&#30340;&#26041;&#27861;&#65306;<\/p>\n<h3>1. &#26816;&#26597;&#38450;&#28779;&#22681;&#35774;&#32622;<\/h3>\n<p>&#30830;&#20445;&#24744;&#30340;&#38450;&#28779;&#22681;&#27809;&#26377;&#38459;&#27490;WordPress&#30340;&#36830;&#25509;&#35831;&#27714;&#12290;&#24744;&#21487;&#20197;&#23581;&#35797;&#22312;&#38450;&#28779;&#22681;&#26085;&#24535;&#20013;&#26597;&#25214;&#20219;&#20309;&#24322;&#24120;&#20449;&#24687;&#12290;<\/p>\n<pre><code class=\"language-bash\">sudo ufw status | grep wordpress<\/code><\/pre>\n<h3>2. &#26356;&#26032;WordPress&#25554;&#20214;&#21644;&#20027;&#39064;<\/h3>\n<p>&#26377;&#26102;&#65292;&#26356;&#26032;&#21040;&#26368;&#26032;&#29256;&#26412;&#30340;WordPress&#25554;&#20214;&#21644;&#20027;&#39064;&#21487;&#20197;&#35299;&#20915;&#36825;&#20010;&#38382;&#39064;&#12290;&#35831;&#26816;&#26597;&#24182;&#23433;&#35013;&#26368;&#26032;&#30340;&#25554;&#20214;&#21644;&#20027;&#39064;&#12290;<\/p>\n<pre><code class=\"language-bash\">wp plugin update --all<\/code><\/pre>\n<pre><code class=\"language-bash\">wp theme update --all<\/code><\/pre>\n<h3>3. &#28165;&#29702;&#32531;&#23384;<\/h3>\n<p>&#23581;&#35797;&#28165;&#38500;WordPress&#30340;&#32531;&#23384;&#20197;&#26597;&#30475;&#26159;&#21542;&#26377;&#25152;&#25913;&#21892;&#12290;&#36825;&#21487;&#20197;&#36890;&#36807;&#32534;&#36753;WordPress&#30340;&#37197;&#32622;&#25991;&#20214;&#26469;&#23454;&#29616;&#65306;<\/p>\n<pre><code class=\"language-bash\">sudo nano \/etc\/wp-config.php<\/code><\/pre>\n<p>&#25214;&#21040;<code>define( 'WP_DEBUG', true );<\/code>&#34892;&#65292;&#23558;<code>true<\/code>&#25913;&#20026;<code>false<\/code>&#12290;<\/p>\n<h3>4. &#31105;&#29992;&#33258;&#21160;&#21152;&#36733;CSS&#21644;JavaScript<\/h3>\n<p>&#31105;&#29992;&#33258;&#21160;&#21152;&#36733;CSS&#21644;JavaScript&#21487;&#20197;&#24110;&#21161;&#20943;&#23569;&#36164;&#28304;&#28040;&#32791;&#65292;&#20174;&#32780;&#20943;&#36731;&#26381;&#21153;&#22120;&#30340;&#21387;&#21147;&#12290;<\/p>\n<pre><code class=\"language-bash\">sudo wp plugin disable all<\/code><\/pre>\n<h3>5. &#35843;&#25972;WordPress&#37197;&#32622;<\/h3>\n<p>&#24744;&#36824;&#21487;&#20197;&#35843;&#25972;WordPress&#30340;&#37197;&#32622;&#25991;&#20214;&#65288;&#22914;<code>wp-config.php<\/code>&#65289;&#20197;&#20248;&#21270;&#24615;&#33021;&#12290;&#20363;&#22914;&#65292;&#24744;&#21487;&#20197;&#35843;&#25972;&#26368;&#22823;HTTP&#35831;&#27714;&#22823;&#23567;&#38480;&#21046;&#65306;<\/p>\n<pre><code class=\"language-php\">ini_set('max_input_time', 60);<\/code><\/pre>\n<p>&#25110;&#32773;&#65292;&#22914;&#26524;&#24744;&#30340;&#26381;&#21153;&#22120;&#25903;&#25345;&#65292;&#24744;&#21487;&#20197;&#35843;&#25972;&#24930;&#21551;&#21160;&#24310;&#36831;&#26102;&#38388;&#65306;<\/p>\n<pre><code class=\"language-php\">ini_set('memory_limit', '-1');\nini_set('max_execution_time', 300); \/\/ 300&#31186;<\/code><\/pre>\n<h3>6. &#26816;&#26597;&#26381;&#21153;&#22120;&#36164;&#28304;<\/h3>\n<p>&#30830;&#20445;&#26381;&#21153;&#22120;&#26377;&#36275;&#22815;&#30340;&#20869;&#23384;&#12289;CPU&#21644;&#30913;&#30424;&#31354;&#38388;&#26469;&#36816;&#34892;WordPress&#12290;&#22914;&#26524;&#38656;&#35201;&#65292;&#32771;&#34385;&#22686;&#21152;&#30828;&#20214;&#36164;&#28304;&#12290;<\/p>\n<h3>7. &#32852;&#31995;&#26381;&#21153;&#22120;&#31649;&#29702;&#21592;<\/h3>\n<p>&#22914;&#26524;&#20197;&#19978;&#26041;&#27861;&#37117;&#26080;&#27861;&#35299;&#20915;&#38382;&#39064;&#65292;&#35831;&#32852;&#31995;&#26381;&#21153;&#22120;&#31649;&#29702;&#21592;&#23547;&#27714;&#24110;&#21161;&#12290;&#20182;&#20204;&#21487;&#33021;&#26377;&#29305;&#23450;&#20110;&#24744;&#30340;&#29615;&#22659;&#30340;&#38382;&#39064;&#35299;&#20915;&#26041;&#26696;&#12290;<\/p>\n<p>&#36890;&#36807;&#19978;&#36848;&#27493;&#39588;&#65292;&#24212;&#35813;&#33021;&#22815;&#35299;&#20915;WordPress&#20013;&#30340;ERR_CONNECTION_RESET&#38169;&#35823;&#38382;&#39064;&#12290;&#24076;&#26395;&#36825;&#23545;&#24744;&#26377;&#25152;&#24110;&#21161;&#65281;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Bug&#32534;&#35793;&#29422; &#35201;&#35299;&#20915;WordPress&#32593;&#31449;&#19978;&#30340;ERR_CONNECTION_RESET&#38169;&#35823;&#65292;&#39318;&#20808;&#038;#38656..<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[59],"tuisongtax":[],"class_list":["post-2283","post","type-post","status-publish","format-standard","hentry","category-wpdt","tag-pzjc"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/posts\/2283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/comments?post=2283"}],"version-history":[{"count":0,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/posts\/2283\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/media?parent=2283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/categories?post=2283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/tags?post=2283"},{"taxonomy":"tuisongtax","embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/tuisongtax?post=2283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}