{"id":245,"date":"2025-10-22T14:29:23","date_gmt":"2025-10-22T06:29:23","guid":{"rendered":"http:\/\/boki.shifengzhi.top\/?p=245"},"modified":"2025-10-22T14:29:23","modified_gmt":"2025-10-22T06:29:23","slug":"%e6%9b%b4%e6%8d%a2%e5%9f%9f%e5%90%8d%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%b8%a9%e5%9d%91%e6%80%bb%e7%bb%93","status":"publish","type":"post","link":"https:\/\/boki.shifengzhi.top\/?p=245","title":{"rendered":"\u66f4\u6362\u57df\u540d\u670d\u52a1\u5668\u8e29\u5751\u603b\u7ed3"},"content":{"rendered":"<h1>WordPress \u53cd\u5411\u4ee3\u7406\u90e8\u7f72\u8e29\u5751\u8bb0\u5f55<\/h1>\n<blockquote>\n<p>\u65e5\u671f\uff1a2025-10-22<br \/>\n\u73af\u5883\uff1a\u963f\u91cc\u4e91 ECS + 1Panel + OpenResty + MySQL(\u5bb9\u5668) + WordPress(\u5bb9\u5668)<br \/>\n\u76ee\u6807\uff1a<strong>\u4ec5\u901a\u8fc7\u57df\u540d <code>boki.shifengzhi.top<\/code> \u8bbf\u95ee\uff0c\u5c4f\u853d IP+\u7aef\u53e3\uff0c\u7edf\u4e00\u524d\u540e\u53f0\u94fe\u63a5<\/strong><\/p>\n<\/blockquote>\n<hr \/>\n<h2>\u6700\u7ec8\u6548\u679c<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u9879\u76ee<\/th>\n<th>\u7ed3\u679c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u535a\u5ba2\u9996\u9875<\/td>\n<td><code>http:\/\/boki.shifengzhi.top<\/code> \u2705<\/td>\n<\/tr>\n<tr>\n<td>\u540e\u53f0\u767b\u5f55<\/td>\n<td><code>http:\/\/boki.shifengzhi.top\/wp-admin<\/code> \u2705<\/td>\n<\/tr>\n<tr>\n<td>IP+\u7aef\u53e3<\/td>\n<td>\u65e0\u6cd5\u8bbf\u95ee\uff088080 \u5df2\u5173\uff09 \u2705<\/td>\n<\/tr>\n<tr>\n<td>\u9996\u9875\u83dc\u5355<\/td>\n<td>\u4e0d\u518d\u8df3 <code>www.shifengzhi.top<\/code> \u6216 IP \u2705<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>\u95ee\u9898\u6e05\u5355\uff08\u590d\u5236\u5373\u7528\uff09<\/h2>\n<h3>1 \u57df\u540d\u6253\u4e0d\u5f00<\/h3>\n<p><strong>\u539f\u56e0<\/strong>\uff1a\u963f\u91cc\u4e91\u5b89\u5168\u7ec4\u672a\u653e\u884c 80 \u7aef\u53e3<br \/>\n<strong>\u89e3\u51b3<\/strong>\uff1a<\/p>\n<ol>\n<li>\u767b\u5f55\u963f\u91cc\u4e91\u63a7\u5236\u53f0 \u2192 \u5b89\u5168\u7ec4 \u2192 \u5165\u65b9\u5411<\/li>\n<li>\u6dfb\u52a0\u89c4\u5219\uff1a<code>TCP 80 0.0.0.0\/0 \u5141\u8bb8<\/code><\/li>\n<\/ol>\n<hr \/>\n<h3>2 \u8bbf\u95ee\u57df\u540d\u540e\u81ea\u52a8\u8df3\u8f6c\u5230 <code>:8080<\/code><\/h3>\n<p><strong>\u539f\u56e0<\/strong>\uff1aWordPress \u5730\u5740\u4ecd\u5e26\u7aef\u53e3<br \/>\n<strong>\u89e3\u51b3<\/strong>\uff1a<\/p>\n<ol>\n<li>\n<p>\u8fdb\u5165 MySQL \u5bb9\u5668\u7ec8\u7aef  <\/p>\n<pre><code class=\"language-bash\">\ndocker exec -it mysql-word_cjfsec mysql -u root -p<\/code><\/pre>\n<\/li>\n<li>\n<p>\u6267\u884cSQL<\/p>\n<pre><code>UPDATE wp_options SET option_value=&#039;http:\/\/boki.shifengzhi.top&#039;\nWHERE option_name IN (&#039;siteurl&#039;,&#039;home&#039;);<\/code><\/pre>\n<\/li>\n<li>\n<p>\u540e\u53f0\u8f93\u5165\u8d26\u53f7\u5bc6\u7801\u65e0\u53cd\u5e94<br \/>\n\u539f\u56e0\uff1a\u767b\u5f55\u8868\u5355\u8de8\u57df\uff08siteurl \u662f IP\uff0c\u6d4f\u89c8\u5668\u5730\u5740\u662f\u57df\u540d\uff09<br \/>\n\u89e3\u51b3\uff1a\u540c\u95ee\u9898 2\uff0c\u786e\u4fdd\u4e24\u4e2a\u5730\u5740\u90fd\u662f\u57df\u540d\u5373\u53ef<\/p>\n<\/li>\n<li>\n<p>\u70b9\u51fb\u201c\u9996\u9875\u201d\u83dc\u5355\u8df3\u8f6c\u5230 www.shifengzhi.top<\/p>\n<ol>\n<li>\u539f\u56e0\uff1a\u83dc\u5355\u9879\u5199\u6b7b\u65e7 URL<\/li>\n<li>\u89e3\u51b3\uff1a<br \/>\n3.\u540e\u53f0 \u2192 \u5916\u89c2 \u2192 \u83dc\u5355<br \/>\n4.\u627e\u5230\u201c\u9996\u9875\u201d\u9879\uff0c\u5c55\u5f00 \u25bc<br \/>\n5.\u628a URL \u6539\u4e3a <a href=\"http:\/\/boki.shifengzhi.top\">http:\/\/boki.shifengzhi.top<\/a><br \/>\n6.\u4fdd\u5b58\u83dc\u5355<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>IP:8080 \u8fd4\u56de 404<br \/>\n\u539f\u56e0\uff1a\u5df2\u5173\u95ed 8080 \u5916\u7f51\u7aef\u53e3<br \/>\n\u89e3\u51b3\uff1a\u65e0\u9700\u5904\u7406\uff0c\u8fd9\u662f\u9884\u671f\u5b89\u5168\u884c\u4e3a<\/p>\n<\/li>\n<\/ol>\n<table>\n<thead>\n<tr>\n<th>\u5e8f\u53f7<\/th>\n<th>\u64cd\u4f5c<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u2460<\/td>\n<td>\u57df\u540d\u89e3\u6790<\/td>\n<td><code>boki.shifengzhi.top<\/code> \u2192 \u670d\u52a1\u5668\u516c\u7f51 IP<\/td>\n<\/tr>\n<tr>\n<td>\u2461<\/td>\n<td>1Panel \u65b0\u5efa\u7f51\u7ad9<\/td>\n<td>\u7c7b\u578b\u9009\u201c\u53cd\u5411\u4ee3\u7406\u201d\uff0c\u76d1\u542c 80\uff0c\u76ee\u6807 <code>http:\/\/127.0.0.1:8080<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u2462<\/td>\n<td>\u653e\u884c 80 \u7aef\u53e3<\/td>\n<td>\u963f\u91cc\u4e91\u5b89\u5168\u7ec4\u5165\u65b9\u5411 TCP 80 0.0.0.0\/0<\/td>\n<\/tr>\n<tr>\n<td>\u2463<\/td>\n<td>\u5173\u95ed 8080 \u5916\u7f51<\/td>\n<td>\u5b89\u5168\u7ec4\u5220\u9664\u6216\u9650\u5236 8080 \u4ec5 127.0.0.1<\/td>\n<\/tr>\n<tr>\n<td>\u2464<\/td>\n<td>\u6570\u636e\u5e93\u6539\u5730\u5740<\/td>\n<td>\u5bb9\u5668\u5185\u6267\u884c\u4e0a\u65b9 SQL\uff0c\u7edf\u4e00\u4e3a\u57df\u540d<\/td>\n<\/tr>\n<tr>\n<td>\u2465<\/td>\n<td>\u4fee\u6b63\u83dc\u5355\u94fe\u63a5<\/td>\n<td>\u540e\u53f0 \u2192 \u5916\u89c2 \u2192 \u83dc\u5355 \u2192 \u9996\u9875 URL \u6539\u57df\u540d<\/td>\n<\/tr>\n<tr>\n<td>\u2466<\/td>\n<td>\u6e05\u9664\u7f13\u5b58<\/td>\n<td>\u63d2\u4ef6\u7f13\u5b58 + \u6d4f\u89c8\u5668\u786c\u5237\u65b0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre><code class=\"language-bash\"># \u672c\u5730\u9a8c\u8bc1\u53cd\u5411\u4ee3\u7406\ncurl -H &quot;Host: boki.shifengzhi.top&quot; -I http:\/\/127.0.0.1\n\n# \u67e5\u770b\u5bb9\u5668\u5185\u5730\u5740\ndocker exec -it mysql-word_cjfsec mysql -u root -p -e \\\n&quot;SELECT option_name,option_value FROM wp_options WHERE option_name IN (&#039;siteurl&#039;,&#039;home&#039;);&quot;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>WordPress \u53cd\u5411\u4ee3\u7406\u90e8\u7f72\u8e29\u5751\u8bb0\u5f55 \u65e5\u671f\uff1a2025-10-22 \u73af\u5883\uff1a\u963f\u91cc\u4e91 ECS + 1Panel  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[16],"class_list":["post-245","post","type-post","status-publish","format-standard","hentry","category-17","tag-16"],"_links":{"self":[{"href":"https:\/\/boki.shifengzhi.top\/index.php?rest_route=\/wp\/v2\/posts\/245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/boki.shifengzhi.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/boki.shifengzhi.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/boki.shifengzhi.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/boki.shifengzhi.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=245"}],"version-history":[{"count":1,"href":"https:\/\/boki.shifengzhi.top\/index.php?rest_route=\/wp\/v2\/posts\/245\/revisions"}],"predecessor-version":[{"id":246,"href":"https:\/\/boki.shifengzhi.top\/index.php?rest_route=\/wp\/v2\/posts\/245\/revisions\/246"}],"wp:attachment":[{"href":"https:\/\/boki.shifengzhi.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/boki.shifengzhi.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/boki.shifengzhi.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}