{"id":33160,"date":"2024-11-25T16:42:07","date_gmt":"2024-11-25T08:42:07","guid":{"rendered":"https:\/\/fwq.ai\/blog\/33160\/"},"modified":"2024-11-25T16:42:07","modified_gmt":"2024-11-25T08:42:07","slug":"wordpress%e4%b8%8b%e8%bd%bd%e5%ae%8c%e6%80%8e%e4%b9%88%e6%89%93%e5%bc%80","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/33160\/","title":{"rendered":"wordpress\u4e0b\u8f7d\u5b8c\u600e\u4e48\u6253\u5f00"},"content":{"rendered":"<blockquote><p>\n  \u4e0b\u8f7d wordpress \u540e\uff0c\u9700\u4f9d\u6b21\u8fdb\u884c\uff1a\u89e3\u538b\u4e0b\u8f7d\u6587\u4ef6\u521b\u5efa\u6570\u636e\u5e93\u4e0a\u4f20\u6587\u4ef6\u4fee\u6539 wp-config.php \u6587\u4ef6\u8fd0\u884c\u5b89\u88c5\u5411\u5bfc\u5b8c\u6210\u5b89\u88c5\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/15\/2024041515571776833.jpg\" class=\"aligncenter\" title=\"wordpress\u4e0b\u8f7d\u5b8c\u600e\u4e48\u6253\u5f00\u63d2\u56fe\" alt=\"wordpress\u4e0b\u8f7d\u5b8c\u600e\u4e48\u6253\u5f00\u63d2\u56fe\" \/><\/p>\n<p><strong>WordPress \u4e0b\u8f7d\u540e\u5982\u4f55\u6253\u5f00\uff1f<\/strong><\/p>\n<p><strong>\u7b2c\u4e00\u6b65\uff1a\u89e3\u538b\u4e0b\u8f7d\u6587\u4ef6<\/strong><\/p>\n<p>\u4e0b\u8f7d WordPress \u540e\uff0c\u901a\u5e38\u4f1a\u5f97\u5230\u4e00\u4e2a\u538b\u7f29\u6587\u4ef6\uff08.zip\uff09\u3002\u4f7f\u7528\u89e3\u538b\u7f29\u5de5\u5177\uff08\u4f8b\u5982 WinRAR \u6216 7-Zip\uff09\u89e3\u538b\u7f29\u6587\u4ef6\u3002<\/p>\n<p><strong>\u7b2c\u4e8c\u6b65\uff1a\u521b\u5efa\u6570\u636e\u5e93<\/strong><\/p>\n<p>WordPress \u9700\u8981\u4e00\u4e2a\u6570\u636e\u5e93\u6765\u5b58\u50a8\u5176\u6570\u636e\u3002\u521b\u5efa\u6570\u636e\u5e93\u7684\u6b65\u9aa4\u53d6\u51b3\u4e8e\u60a8\u7684\u7f51\u7edc\u6258\u7ba1\u670d\u52a1\u5546\u3002\u901a\u5e38\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7 cPanel \u6216 Plesk \u7b49\u63a7\u5236\u9762\u677f\u521b\u5efa\u6570\u636e\u5e93\u3002<\/p>\n<p><strong>\u7b2c\u4e09\u6b65\uff1a\u4e0a\u4f20\u6587\u4ef6<\/strong><\/p>\n<p>\u4f7f\u7528 FTP \u5ba2\u6237\u7aef\uff08\u4f8b\u5982 FileZilla \u6216 Cyberduck\uff09\u6216\u6587\u4ef6\u7ba1\u7406\u5668\uff08\u5982\u679c\u60a8\u4f7f\u7528 cPanel \u6216 Plesk\uff09\u5c06\u89e3\u538b\u7f29\u7684 WordPress \u6587\u4ef6\u4e0a\u4f20\u5230\u60a8\u7684 Web \u6258\u7ba1\u7a7a\u95f4\u3002\u5c06\u6587\u4ef6\u4e0a\u4f20\u5230 public_html \u6587\u4ef6\u5939\u6216\u60a8\u7f51\u7ad9\u7684\u6839\u76ee\u5f55\u3002<\/p>\n<p><strong>\u7b2c\u56db\u6b65\uff1a\u4fee\u6539 wp-config.php \u6587\u4ef6<\/strong><\/p>\n<p>\u627e\u5230 wp-config-sample.php \u6587\u4ef6\u5e76\u5c06\u5176\u91cd\u547d\u540d\u4e3a wp-config.php\u3002\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff08\u4f8b\u5982\u8bb0\u4e8b\u672c\u6216 Sublime Text\uff09\u6253\u5f00 wp-config.php \u6587\u4ef6\u3002\u7f16\u8f91\u4ee5\u4e0b\u51e0\u884c\uff0c\u66ff\u6362\u4e3a\u60a8\u81ea\u5df1\u7684\u6570\u636e\u5e93\u8be6\u7ec6\u4fe1\u606f\uff1a<\/p>\n<pre>define('DB_NAME', '\u60a8\u7684\u6570\u636e\u5e93\u540d\u79f0');\ndefine('DB_USER', '\u60a8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d');\ndefine('DB_PASSWORD', '\u60a8\u7684\u6570\u636e\u5e93\u5bc6\u7801');\ndefine('DB_HOST', '\u60a8\u7684\u6570\u636e\u5e93\u4e3b\u673a\u5730\u5740\uff08\u901a\u5e38\u4e3a localhost\uff09');<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u7b2c\u4e94\u6b65\uff1a\u8fd0\u884c\u5b89\u88c5\u5411\u5bfc<\/strong><\/p>\n<p>\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165\u60a8\u7684\u7f51\u7ad9 URL \u5e76\u6dfb\u52a0 \/wp-admin\/install.php\u3002\u8fd9\u5c06\u542f\u52a8 WordPress \u5b89\u88c5\u5411\u5bfc\u3002\u6309\u7167\u5c4f\u5e55\u4e0a\u7684\u8bf4\u660e\u8fdb\u884c\u64cd\u4f5c\uff0c\u63d0\u4f9b\u7f51\u7ad9\u6807\u9898\u3001\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<\/p>\n<p><strong>\u7b2c\u516d\u6b65\uff1a\u5b8c\u6210\u5b89\u88c5<\/strong><\/p>\n<p>\u5b8c\u6210\u5b89\u88c5\u5411\u5bfc\u540e\uff0cWordPress \u5c06\u81ea\u52a8\u5b89\u88c5\u5e76\u6fc0\u6d3b\u3002\u6b64\u65f6\uff0c\u60a8\u7684\u7f51\u7ad9\u5e94\u8be5\u5df2\u7ecf\u53ef\u4ee5\u8bbf\u95ee\u4e86\u3002<\/p>\n<p><strong>\u63d0\u793a\uff1a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u60a8\u7684 Web \u6258\u7ba1\u7a7a\u95f4\u652f\u6301 PHP \u548c MySQL\u3002<\/li>\n<li>\u5982\u679c\u5728\u4efb\u4f55\u6b65\u9aa4\u9047\u5230\u95ee\u9898\uff0c\u8bf7\u53c2\u8003 WordPress Codex \u6216\u5bfb\u6c42 Web \u6258\u7ba1\u670d\u52a1\u5546\u7684\u652f\u6301\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4e0b\u8f7d\u5b8c\u600e\u4e48\u6253\u5f00\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u8f7d wordpress \u540e\uff0c\u9700\u4f9d\u6b21\u8fdb\u884c\uff1a\u89e3\u538b\u4e0b\u8f7d\u6587\u4ef6\u521b\u5efa\u6570\u636e\u5e93\u4e0a\u4f20\u6587\u4ef6\u4fee\u6539 wp-config.php \u6587\u4ef6\u8fd0\u884c\u5b89\u88c5\u5411\u5bfc\u5b8c\u6210\u5b89\u88c5 WordPress \u4e0b\u8f7d\u540e\u5982\u4f55\u6253\u5f00\uff1f \u7b2c\u4e00\u6b65\uff1a\u89e3\u538b\u4e0b\u8f7d\u6587\u4ef6 \u4e0b\u8f7d WordPress \u540e\uff0c\u901a\u5e38\u4f1a\u5f97\u5230\u4e00\u4e2a\u538b\u7f29\u6587\u4ef6\uff08.zip\uff09\u3002\u4f7f\u7528\u89e3\u538b\u7f29\u5de5\u5177\uff08\u4f8b\u5982 WinRAR \u6216 7-Zip\uff09\u89e3\u538b\u7f29\u6587\u4ef6\u3002 \u7b2c\u4e8c\u6b65\uff1a\u521b\u5efa\u6570\u636e\u5e93 WordPress \u9700\u8981\u4e00\u4e2a\u6570\u636e\u5e93\u6765\u5b58\u50a8\u5176\u6570\u636e\u3002\u521b\u5efa\u6570\u636e\u5e93\u7684\u6b65\u9aa4\u53d6\u51b3\u4e8e\u60a8\u7684\u7f51\u7edc\u6258\u7ba1\u670d\u52a1\u5546\u3002\u901a\u5e38\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7 cPanel \u6216 Plesk \u7b49\u63a7\u5236\u9762\u677f\u521b\u5efa\u6570\u636e\u5e93\u3002 \u7b2c\u4e09\u6b65\uff1a\u4e0a\u4f20\u6587\u4ef6 \u4f7f\u7528 FTP \u5ba2\u6237\u7aef\uff08\u4f8b\u5982 FileZilla \u6216 Cyberduck\uff09\u6216\u6587\u4ef6\u7ba1\u7406\u5668\uff08\u5982\u679c\u60a8\u4f7f\u7528 cPanel \u6216 Plesk\uff09\u5c06\u89e3\u538b\u7f29\u7684 WordPress \u6587\u4ef6\u4e0a\u4f20\u5230\u60a8\u7684 Web \u6258\u7ba1\u7a7a\u95f4\u3002\u5c06\u6587\u4ef6\u4e0a\u4f20\u5230 public_html \u6587\u4ef6\u5939\u6216\u60a8\u7f51\u7ad9\u7684\u6839\u76ee\u5f55\u3002 \u7b2c\u56db\u6b65\uff1a\u4fee\u6539 wp-config.php \u6587\u4ef6 \u627e\u5230 wp-config-sample.php \u6587\u4ef6\u5e76\u5c06\u5176\u91cd\u547d\u540d\u4e3a wp-config.php\u3002\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff08\u4f8b\u5982\u8bb0\u4e8b\u672c\u6216 Sublime Text\uff09\u6253\u5f00 wp-config.php \u6587\u4ef6\u3002\u7f16\u8f91\u4ee5\u4e0b\u51e0\u884c\uff0c\u66ff\u6362\u4e3a\u60a8\u81ea\u5df1\u7684\u6570\u636e\u5e93\u8be6\u7ec6\u4fe1\u606f\uff1a define(&#8216;DB_NAME&#8217;, &#8216;\u60a8\u7684\u6570\u636e\u5e93\u540d\u79f0&#8217;); define(&#8216;DB_USER&#8217;, &#8216;\u60a8\u7684\u6570\u636e\u5e93\u7528\u6237\u540d&#8217;); define(&#8216;DB_PASSWORD&#8217;, &#8216;\u60a8\u7684\u6570\u636e\u5e93\u5bc6\u7801&#8217;); define(&#8216;DB_HOST&#8217;, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-33160","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/33160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=33160"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/33160\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=33160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=33160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=33160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}