{"id":406,"date":"2025-08-19T08:40:15","date_gmt":"2025-08-19T08:40:15","guid":{"rendered":"https:\/\/anjir.top\/?p=406"},"modified":"2025-08-19T22:20:28","modified_gmt":"2025-08-19T14:20:28","slug":"%e9%98%b2%e6%ad%a2%e9%bb%91%e5%ae%a2%e6%89%ab%e6%8f%8f%e5%87%bawordpress%e7%ae%a1%e7%90%86%e5%91%98%e7%94%a8%e6%88%b7%e5%90%8d","status":"publish","type":"post","link":"https:\/\/anjir.top\/?p=406","title":{"rendered":"\u9632\u6b62\u9ed1\u5ba2\u626b\u63cf\u51faWordPress\u7ba1\u7406\u5458\u7528\u6237\u540d"},"content":{"rendered":"<section style='line-height: 1.8em;text-size-adjust: 100%;margin: 0px;padding: 1em;font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\";font-size: 16px;color: rgb(89, 89, 89);background-color: white;background-image: linear-gradient(90deg, rgba(60, 10, 30, 0.05) 3%, transparent 0px), linear-gradient(1turn, rgba(60, 10, 30, 0.05) 3%, transparent 0px);background-size: 20px 20px;background-position: 50% center;word-break: break-all;' data-pm-slice=\"0 0 []\">\n<p style=\"box-sizing: border-box;margin: 0.75em 0px 1rem;\"><span leaf=\"\">\u4e0a\u7bc7\u6587\u7ae0\u89e3\u51b3\u4e86\u9ed1\u5ba2\u5229\u7528xmlrpc.php\u63a5\u53e3\u66b4\u529b\u7834\u89e3\u6211\u7684WordPress\u4e2a\u4eba\u7f51\u7ad9\u7684\u95ee\u9898\uff0c\u4f46\u8fd8\u7559\u6709\u4e00\u4e9b\u5c0f\u95ee\u9898\u6ca1\u89e3\u51b3\u3002\u9996\u5148\uff1a\u9ed1\u5ba2\u662f\u600e\u4e48\u77e5\u9053\u6211\u7684\u7ba1\u7406\u5458\u7528\u6237\u540d\u7684\uff1f\u6709\u4e86\u6b63\u786e\u7684\u7ba1\u7406\u5458\u7528\u6237\u540d\uff0c\u9ed1\u5ba2\u653b\u7834\u7f51\u7ad9\u7684\u96be\u5ea6\u76f4\u63a5\u51cf\u4e86\u4e00\u534a\uff0c\u731c\u5bf9\u7ba1\u7406\u5458\u5bc6\u7801\u5c31\u884c\u4e86\u3002\u5176\u6b21\uff1a\u5982\u4f55\u9632\u6b62\u9ed1\u5ba2\u626b\u63cf\u51faWordPress\u7ba1\u7406\u5458\u7528\u6237\u540d\uff1f\u6700\u540e\uff1a\u5982\u4f55\u4fee\u6539\u5df2\u7ecf\u66b4\u9732\u4e86\u7684WordPress\u7ba1\u7406\u5458\u7528\u6237\u540d\uff1f<\/span><\/p>\n<h3 style=\"box-sizing: border-box;font-size: 1.17em;font-weight: bold;margin: 1.5em 0px 16px;line-height: 1.25;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(0, 0, 0);\">\u9ed1\u5ba2\u662f\u600e\u4e48\u77e5\u9053\u7ba1\u7406\u5458\u7528\u6237\u540d\u7684\uff1f<\/span><\/span><\/h3>\n<ol style=\"box-sizing: border-box;margin-top: 0.75em;margin-bottom: 1rem;list-style: decimal;padding-left: 2em;\" class=\"list-paddingleft-1\">\n<li style=\"box-sizing: border-box;\">\n<section><span leaf=\"\">\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u8bbf\u95ee https:\/\/anjir.top\/?author=1 \u8fd9\u6837\u7684\u94fe\u63a5\uff0c\u4f1a\u81ea\u52a8\u8df3\u8f6c\u5230 https:\/\/anjir.top\/author\/\u4f60\u7684\u7528\u6237\u540d\/\uff0c\u4ece\u800c\u66b4\u9732\u4e86\u7528\u6237\u540d\u4e3a admin\uff08\u5982\u679c\u7528\u6237ID\u662f1\uff09\u6216\u4f60\u7684\u65b0\u7528\u6237\u540d\u3002\u5f88\u597d\u7406\u89e3\uff0c\u7f51\u7ad9\u7684\u7b2c\u4e00\u4e2a\u7528\u6237\uff0c\u80af\u5b9a\u662f\u7ad9\u957f\u4e86\uff0c\u4e5f\u5c31\u662f\u6709\u6700\u9ad8\u6743\u9650\u7684\u7ba1\u7406\u5458\u3002<\/span><\/section>\n<\/li>\n<li style=\"box-sizing: border-box;margin-top: 0.25em;\">\n<section><span leaf=\"\">WordPress REST API \u662f\u4e00\u4e2a\u5217\u51fa\u7528\u6237\u540d\u7684\u63a5\u53e3\uff0c\u8bbf\u95eehttps:\/\/anjir.top\/wp-json\/wp\/v2\/users\uff0c\u4f1a\u8fd4\u56de\u6240\u6709\u7528\u6237\u4fe1\u606f\u3002<\/span><\/section>\n<\/li>\n<li style=\"box-sizing: border-box;margin-top: 0.25em;\">\n<section><span leaf=\"\">WordPress \u5728\u6587\u7ae0\u4f5c\u8005\u5904\u663e\u793a\u7684\u53ef\u80fd\u9ed8\u8ba4\u662f\u4f60\u7684\u7528\u6237\u540d\u3002<\/span><\/section>\n<\/li>\n<\/ol>\n<h3 style=\"box-sizing: border-box;font-size: 1.17em;font-weight: bold;margin: 1.5em 0px 16px;line-height: 1.25;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(0, 0, 0);\">\u5982\u4f55\u9632\u6b62\u9ed1\u5ba2\u626b\u63cf\u51faWordPress\u7ba1\u7406\u5458\u7528\u6237\u540d\uff1f<\/span><\/span><\/h3>\n<h4 style=\"box-sizing: border-box;font-size: 1em;font-weight: bold;margin: 1.5em 0px 16px;line-height: 1.25;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(0, 0, 0);\">\u7528 Nginx \u62e6\u622a\u201c\/?author=\u201d\u548c\u201c\u5c4f\u853d REST API \u63a5\u53e3\u201d<\/span><\/span><\/h4>\n<h4 style=\"box-sizing: border-box;font-size: 1em;font-weight: bold;margin: 1.5em 0px 16px;line-height: 1.25;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(0, 0, 0);font-weight: normal;\">\u00a01.<\/span><span textstyle=\"\" style=\"color: rgb(0, 0, 0);\">\u7f16\u8f91\u7ad9\u70b9\u914d\u7f6e\u6587\u4ef6 app.conf<\/span><\/span><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(0, 0, 0);\">: \u00a0<\/span><\/span><\/h4>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 10px;padding-right: 10px;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: 0%;background-position-y: 0%;background-repeat: no-repeat;background-size: auto;width: auto;font-family: Optima, 'Microsoft YaHei', PingFangSC-regular, serif;font-size: 16px;color: rgb(0, 0, 0);line-height: 1.5em;word-spacing: 0em;letter-spacing: 0em;word-break: break-word;overflow-wrap: break-word;text-align: left;\" data-pm-slice=\"0 0 []\">\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style='display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(\"https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/VHU8bI7BOJDLNQ3otibbYGFk4CbYZRgazFIkbwnW3L9pIetJWZ6G2QFzm58hu3YdZHqp4ibTImfhxxE0P70URDbUrTWZ0zP67j\/640?wx_fmt=svg&amp;from=appmsg\");'><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span leaf=\"\">nano .\/nginx\/conf.d\/app.conf<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<\/section>\n<p style=\"box-sizing: border-box;margin: 0.75em 0px 1rem;\"><strong style=\"box-sizing: border-box;font-weight: bold;color: rgb(90, 103, 216);\"><span leaf=\"\">\u00a0<\/span><span leaf=\"\" style='text-size-adjust: 100%;font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\";color: rgb(89, 89, 89);background-color: white;background-image: linear-gradient(90deg, rgba(60, 10, 30, 0.05) 3%, transparent 0px), linear-gradient(1turn, rgba(60, 10, 30, 0.05) 3%, transparent 0px);background-size: 20px 20px;background-position: 50% center;word-break: break-all;box-sizing: border-box;font-size: 1em;font-weight: bold;line-height: 1.25;'><span textstyle=\"\" style=\"color: rgb(0, 0, 0);font-weight: normal;\">2.<\/span><\/span><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(0, 0, 0);\">\u6dfb\u52a0\u65b0\u7684\u5b89\u5168\u89c4\u5219:<\/span><\/span><\/strong><\/p>\n<p style=\"box-sizing: border-box;margin: 0.75em 0px 1rem;\"><strong style=\"box-sizing: border-box;font-weight: bold;color: rgb(90, 103, 216);\"><span leaf=\"\">\u00a0 \u00a0<span textstyle=\"\" style=\"font-weight: normal;\">\u00a0<\/span><\/span><span leaf=\"\" style='line-height: 1.8em;text-size-adjust: 100%;font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\";font-size: 16px;color: rgb(89, 89, 89);background-color: white;background-image: linear-gradient(90deg, rgba(60, 10, 30, 0.05) 3%, transparent 0px), linear-gradient(1turn, rgba(60, 10, 30, 0.05) 3%, transparent 0px);background-size: 20px 20px;background-position: 50% center;word-break: break-all;'><span textstyle=\"\" style=\"font-weight: normal;\">\u5728 HTTPS (443) \u7684 server { &#8230; } \u5185\u90e8\uff0c\u5c06\u8fd9\u4e9b\u5b89\u5168\u89c4\u5219\u653e\u5728\u4e00\u8d77\uff0c\u4fbf\u4e8e\u7ba1\u7406\u3002\u53ef\u4ee5\u653e\u5728 server_name \u7684\u4e0b\u9762\u3002<\/span><\/span><\/strong><\/p>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 10px;padding-right: 10px;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: 0%;background-position-y: 0%;background-repeat: no-repeat;background-size: auto;width: auto;font-family: Optima, 'Microsoft YaHei', PingFangSC-regular, serif;font-size: 16px;color: rgb(0, 0, 0);line-height: 1.5em;word-spacing: 0em;letter-spacing: 0em;word-break: break-word;overflow-wrap: break-word;text-align: left;\" data-pm-slice=\"0 0 []\">\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style='display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(\"https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/VHU8bI7BOJDLNQ3otibbYGFk4CbYZRgazFIkbwnW3L9pIetJWZ6G2QFzm58hu3YdZHqp4ibTImfhxxE0P70URDbUrTWZ0zP67j\/640?wx_fmt=svg&amp;from=appmsg\");'><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span leaf=\"\">server {<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0 listen 443 ssl http2;<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0 server_name anjir.top www.anjir.top;<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># ... SSL \u8bc1\u4e66\u914d\u7f6e\u7b49 ...<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># ================== \u65b0\u589e\u5b89\u5168\u89c4\u5219 \u5f00\u59cb ==================<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># 1. \u9632\u6b62\u901a\u8fc7 author \u53c2\u6570\u7684\u7528\u6237\u679a\u4e3e\u653b\u51fb<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">if<\/span><\/span><span leaf=\"\">\u00a0(<\/span><span style=\"color: #d19a66;line-height: 26px;\"><span leaf=\"\">$args<\/span><\/span><span leaf=\"\">\u00a0~*\u00a0<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">\"author=d+\"<\/span><\/span><span leaf=\"\">) {<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">return<\/span><\/span><span leaf=\"\">\u00a0403;<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0 }<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># 2. \u5c4f\u853d REST API \u7684\u7528\u6237\u5217\u8868\u63a5\u53e3<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0 location = \/wp-json\/wp\/v2\/users {<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">return<\/span><\/span><span leaf=\"\">\u00a0403;<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0 }<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># \u5982\u679c\u4f60\u60f3\u5c4f\u853d\u66f4\u5e7f\u8303\u56f4\u7684 user \u76f8\u5173\u63a5\u53e3<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># location ~* ^\/wp-json\/wp\/v2\/users\/ {<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># \u00a0 \u00a0 return 403;<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># }<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># ================== \u65b0\u589e\u5b89\u5168\u89c4\u5219 \u7ed3\u675f ==================<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u00a0 \u00a0\u00a0<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># ... \u5176\u4ed6\u914d\u7f6e\uff0c\u5982 root, index, if ($host = ...), location \/ \u7b49 ...<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">}<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<\/section>\n<p style=\"box-sizing: border-box;margin: 0.75em 0px 1rem;\"><strong style=\"box-sizing: border-box;font-weight: bold;color: rgb(90, 103, 216);\"><span leaf=\"\">\u00a0<\/span><span leaf=\"\" style='text-size-adjust: 100%;font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\";color: rgb(89, 89, 89);background-color: white;background-image: linear-gradient(90deg, rgba(60, 10, 30, 0.05) 3%, transparent 0px), linear-gradient(1turn, rgba(60, 10, 30, 0.05) 3%, transparent 0px);background-size: 20px 20px;background-position: 50% center;word-break: break-all;box-sizing: border-box;font-size: 1em;font-weight: bold;line-height: 1.25;'><span textstyle=\"\" style=\"color: rgb(0, 0, 0);font-weight: normal;\">3.<\/span><\/span><span leaf=\"\" style='line-height: 1.8em;text-size-adjust: 100%;font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\";font-size: 16px;background-color: white;background-image: linear-gradient(90deg, rgba(60, 10, 30, 0.05) 3%, transparent 0px), linear-gradient(1turn, rgba(60, 10, 30, 0.05) 3%, transparent 0px);background-size: 20px 20px;background-position: 50% center;word-break: break-all;box-sizing: border-box;font-weight: bold;color: rgb(90, 103, 216);'><span textstyle=\"\" style=\"color: rgb(0, 0, 0);\">\u4fdd\u5b58\u6587\u4ef6\u5e76\u5e73\u6ed1\u91cd\u8f7d Nginx<\/span><\/span><\/strong><span leaf=\"\" style='line-height: 1.8em;text-size-adjust: 100%;font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\";font-size: 16px;background-color: white;background-image: linear-gradient(90deg, rgba(60, 10, 30, 0.05) 3%, transparent 0px), linear-gradient(1turn, rgba(60, 10, 30, 0.05) 3%, transparent 0px);background-size: 20px 20px;background-position: 50% center;word-break: break-all;box-sizing: border-box;font-weight: bold;color: rgb(90, 103, 216);'><span textstyle=\"\" style=\"color: rgb(0, 0, 0);\">:<\/span><\/span><\/p>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 10px;padding-right: 10px;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: 0%;background-position-y: 0%;background-repeat: no-repeat;background-size: auto;width: auto;font-family: Optima, 'Microsoft YaHei', PingFangSC-regular, serif;font-size: 16px;color: rgb(0, 0, 0);line-height: 1.5em;word-spacing: 0em;letter-spacing: 0em;word-break: break-word;overflow-wrap: break-word;text-align: left;\" data-pm-slice=\"0 0 []\">\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style='display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(\"https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/VHU8bI7BOJDLNQ3otibbYGFk4CbYZRgazFIkbwnW3L9pIetJWZ6G2QFzm58hu3YdZHqp4ibTImfhxxE0P70URDbUrTWZ0zP67j\/640?wx_fmt=svg&amp;from=appmsg\");'><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span leaf=\"\">docker compose\u00a0<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">exec<\/span><\/span><span leaf=\"\">\u00a0nginx nginx -s reload<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<\/section>\n<h4 style=\"box-sizing: border-box;font-size: 1em;font-weight: bold;margin: 1.5em 0px 16px;line-height: 1.25;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(0, 0, 0);\">\u4fee\u6539\u7528\u6237\u6635\u79f0<\/span><\/span><\/h4>\n<p style=\"box-sizing: border-box;margin: 0.75em 0px 1rem;\"><span leaf=\"\">WordPress \u5728\u6587\u7ae0\u4f5c\u8005\u5904\u663e\u793a\u7684\u53ef\u80fd\u9ed8\u8ba4\u662f\u4f60\u7684\u7528\u6237\u540d\u3002<\/span><span leaf=\"\"><br \/><\/span><span leaf=\"\">\u00a0 \u00a0 1. \u5de6\u4fa7\u83dc\u5355 -&gt; \u7528\u6237 -&gt; \u4e2a\u4eba\u8d44\u6599\u3002<\/span><span leaf=\"\"><br \/><\/span><span leaf=\"\">\u00a0 \u00a0 2. \u627e\u5230\u201c\u6635\u79f0\uff08\u5fc5\u586b\uff09\u201d\u5b57\u6bb5\uff0c\u8f93\u5165\u4e00\u4e2a\u4f60\u60f3\u516c\u5f00\u5c55\u793a\u7684\u540d\u5b57\uff08\u6bd4\u5982 \u201c\u7ad9\u957f\u201d\u3001\u201canjir\u201d \u6216\u8005\u4efb\u4f55\u7b14\u540d\uff09\u3002<\/span><span leaf=\"\"><br \/><\/span><span leaf=\"\">\u00a0 \u00a0 3. \u5728\u4e0b\u9762\u7684\u201c\u516c\u5f00\u663e\u793a\u4e3a\u201d\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u52a1\u5fc5\u9009\u62e9\u4f60\u521a\u521a\u8bbe\u7f6e\u7684\u90a3\u4e2a\u6635\u79f0\u3002<\/span><span leaf=\"\"><br \/><\/span><span leaf=\"\">\u00a0 \u00a0 4. \u70b9\u51fb\u201c\u66f4\u65b0\u4e2a\u4eba\u8d44\u6599\u201d\u3002<\/span><span leaf=\"\"><br \/><\/span><span leaf=\"\">\u8fd9\u6837\uff0c\u4f60\u7f51\u7ad9\u524d\u53f0\u6240\u6709\u663e\u793a\u4f5c\u8005\u7684\u5730\u65b9\uff0c\u90fd\u5c06\u662f\u4f60\u7684\u6635\u79f0\uff0c\u800c\u4e0d\u662f\u4f60\u90a3\u4fdd\u5bc6\u7684\u767b\u5f55\u7528\u6237\u540d\u3002<\/span><\/p>\n<h3 style=\"box-sizing: border-box;font-size: 1.17em;font-weight: bold;margin: 1.5em 0px 16px;line-height: 1.25;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(0, 0, 0);\">\u5982\u4f55\u4fee\u6539\u5df2\u7ecf\u66b4\u9732\u4e86\u7684WordPress\u7ba1\u7406\u5458\u7528\u6237\u540d\uff1f<\/span><\/span><\/h3>\n<h4 style=\"box-sizing: border-box;font-size: 1em;font-weight: bold;margin: 1.5em 0px 16px;line-height: 1.25;\"><span leaf=\"\"><span textstyle=\"\" style=\"color: rgb(0, 0, 0);\">\u76f4\u63a5\u901a\u8fc7\u6570\u636e\u5e93\u4fee\u6539\u7528\u6237\u540d<\/span><\/span><\/h4>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 10px;padding-right: 10px;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: 0%;background-position-y: 0%;background-repeat: no-repeat;background-size: auto;width: auto;font-family: Optima, 'Microsoft YaHei', PingFangSC-regular, serif;font-size: 16px;color: rgb(0, 0, 0);line-height: 1.5em;word-spacing: 0em;letter-spacing: 0em;word-break: break-word;overflow-wrap: break-word;text-align: left;\" data-pm-slice=\"0 0 []\">\n<ol class=\"list-paddingleft-1\">\n<li>\n<section style=\"box-sizing: border-box;margin: 0.75em 0px 1rem;\"><span leaf=\"\">\u8fdb\u5165\u6570\u636e\u5e93\u5bb9\u5668\uff1a<\/span><\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(89, 89, 89);font-size: 15px;line-height: 1.8em;letter-spacing: 0.04em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: 0%;background-position-y: 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">docker exec -it wordpress_db mysql -u root -p<\/span><\/code><\/p>\n<ol class=\"list-paddingleft-1\" start=\"2\">\n<li>\n<section style=\"box-sizing: border-box;margin: 0.75em 0px 1rem;\"><span leaf=\"\">\u4f7f\u7528 WordPress \u6570\u636e\u5e93\uff1a<\/span><\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(89, 89, 89);font-size: 15px;line-height: 1.8em;letter-spacing: 0.04em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: 0%;background-position-y: 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">USE wordpress;<\/span><\/code><\/p>\n<ol class=\"list-paddingleft-1\" start=\"3\">\n<li>\n<section style=\"box-sizing: border-box;margin: 0.75em 0px 1rem;\"><span leaf=\"\">\u67e5\u8be2\u7ba1\u7406\u5458\u8d26\u53f7\uff1a<\/span><\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(89, 89, 89);font-size: 15px;line-height: 1.8em;letter-spacing: 0.04em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: 0%;background-position-y: 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">SELECT ID, user_login FROM wp_users;<\/span><\/code><\/p>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(89, 89, 89);font-size: 15px;line-height: 1.8em;letter-spacing: 0.04em;text-align: left;font-weight: normal;\"><span leaf=\"\" style='text-size-adjust: 100%;background: none 0% 0% \/ auto no-repeat scroll padding-box border-box rgba(0, 0, 0, 0);font-family: Optima, \"Microsoft YaHei\", PingFangSC-regular, serif;font-size: 16px;color: rgb(0, 0, 0);line-height: 1.5em;word-spacing: 0em;letter-spacing: 0em;word-break: break-word;overflow-wrap: break-word;text-align: left;box-sizing: border-box;'><span textstyle=\"\" style=\"font-weight: normal;\">4.<\/span>\u00a0\u4fee\u6539\u7528\u6237\u540d\u4e3a\u4e00\u4e2a\u4e0d\u5bb9\u6613\u731c\u7684\u65b0\u540d\u5b57\uff0c\u4f8b\u5982<\/span><span leaf=\"\">\u00a0<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: 0%;background-position-y: 0%;background-repeat: no-repeat;background-size: auto;width: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">super7cat_admin_xyz<\/span><\/code><span leaf=\"\" style='line-height: 1.8em;text-size-adjust: 100%;font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\";font-size: 16px;color: rgb(89, 89, 89);background-color: white;background-image: linear-gradient(90deg, rgba(60, 10, 30, 0.05) 3%, transparent 0px), linear-gradient(1turn, rgba(60, 10, 30, 0.05) 3%, transparent 0px);background-size: 20px 20px;background-position: 50% center;word-break: break-all;box-sizing: border-box;'>\uff1a<\/span><\/section>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(89, 89, 89);font-size: 15px;line-height: 1.8em;letter-spacing: 0.04em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: 0%;background-position-y: 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">UPDATE wp_users SET user_login = 'super7cat_admin_xyz' WHERE ID = 1;<\/span><\/code><\/p>\n<ol class=\"list-paddingleft-1\" start=\"5\">\n<li>\n<section style=\"box-sizing: border-box;margin: 0.75em 0px 1rem;\"><span leaf=\"\">\u9000\u51fa\uff1a<\/span><\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(89, 89, 89);font-size: 15px;line-height: 1.8em;letter-spacing: 0.04em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: 0%;background-position-y: 0%;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">EXIT;<\/span><\/code><\/p>\n<\/section>\n<section><span leaf=\"\"><br \/><\/span><\/section>\n<\/section>\n<section><span leaf=\"\"><br \/><\/span><\/section>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u7bc7\u6587\u7ae0\u89e3\u51b3\u4e86\u9ed1\u5ba2\u5229\u7528xmlrpc.php\u63a5\u53e3\u66b4\u529b\u7834\u89e3\u6211\u7684WordPress\u4e2a\u4eba\u7f51\u7ad9\u7684\u95ee\u9898\uff0c\u4f46\u8fd8\u7559\u6709\u4e00\u4e9b\u5c0f\u95ee\u9898\u6ca1\u89e3\u51b3\u3002\u9996\u5148\uff1a\u9ed1\u5ba2\u662f\u600e\u4e48\u77e5\u9053\u6211\u7684\u7ba1\u7406\u5458\u7528\u6237\u540d\u7684\uff1f\u6709\u4e86\u6b63\u786e\u7684\u7ba1\u7406\u5458\u7528\u6237\u540d\uff0c\u9ed1\u5ba2\u653b\u7834\u7f51\u7ad9\u7684\u96be\u5ea6\u76f4\u63a5\u51cf\u4e86\u4e00\u534a\uff0c\u731c\u5bf9\u7ba1\u7406\u5458\u5bc6\u7801\u5c31\u884c\u4e86\u3002\u5176\u6b21\uff1a\u5982\u4f55\u9632\u6b62\u9ed1\u5ba2\u626b\u63cf\u51faWordPress\u7ba1\u7406\u5458\u7528\u6237\u540d\uff1f\u6700\u540e\uff1a\u5982\u4f55\u4fee\u6539\u5df2\u7ecf\u66b4\u9732\u4e86\u7684WordPress\u7ba1\u7406\u5458\u7528\u6237\u540d\uff1f \u9ed1\u5ba2\u662f\u600e\u4e48\u77e5\u9053\u7ba1\u7406\u5458\u7528\u6237\u540d\u7684\uff1f \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u8bbf\u95ee [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":407,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[29,30],"class_list":["post-406","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","tag-wordpress","tag-30"],"_links":{"self":[{"href":"https:\/\/anjir.top\/index.php?rest_route=\/wp\/v2\/posts\/406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anjir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anjir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anjir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anjir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=406"}],"version-history":[{"count":0,"href":"https:\/\/anjir.top\/index.php?rest_route=\/wp\/v2\/posts\/406\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/anjir.top\/index.php?rest_route=\/wp\/v2\/media\/407"}],"wp:attachment":[{"href":"https:\/\/anjir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anjir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anjir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}