{"id":104740,"date":"2026-09-13T07:18:01","date_gmt":"2026-09-12T23:18:01","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/104740.html"},"modified":"2026-09-13T07:18:01","modified_gmt":"2026-09-12T23:18:01","slug":"%e6%89%8b%e5%8a%a8%e6%90%ad%e5%bb%ba%e4%b8%aa%e4%ba%ba%e7%bd%91%e7%ab%99%ef%bc%9a%e5%9f%9f%e5%90%8d%e3%80%81%e6%9c%8d%e5%8a%a1%e5%99%a8%e3%80%81nginx%e4%b8%8ewordpress%e5%85%a8%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/104740.html","title":{"rendered":"\u624b\u52a8\u642d\u5efa\u4e2a\u4eba\u7f51\u7ad9\uff1a\u57df\u540d\u3001\u670d\u52a1\u5668\u3001Nginx\u4e0eWordPress\u5168\u914d\u7f6e\u6307\u5357"},"content":{"rendered":"<h3>\n 1. \u5185\u5bb9\u6574\u4f53\u8bbe\u8ba1\u4e0e\u601d\u8def\u62c6\u89e3<br \/>\n<\/h3>\n<h4>\n 1.1 \u5148\u8bf4\u6e05\u695a&#xff1a;\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u5230\u5e95\u5728\u914d\u4ec0\u4e48<br \/>\n<\/h4>\n<p>\n \u6211\u63a5\u89e6\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u8fd9\u4e2a\u4e8b\u4e5f\u6709\u597d\u4e9b\u5e74\u4e86&#xff0c;\u6700\u65e9\u662f\u4e3a\u4e86\u653e\u81ea\u5df1\u7684\u7b80\u5386\u548c\u4f5c\u54c1\u96c6&#xff0c;\u540e\u6765\u6162\u6162\u6298\u817e\u6210\u6280\u672f\u535a\u5ba2\u3001\u6444\u5f71\u5c55\u793a\u7ad9\u3001\u751a\u81f3\u5e2e\u670b\u53cb\u642d\u4e86\u5c0f\u578b\u7535\u5546\u9875\u3002\u5f88\u591a\u521a\u5165\u95e8\u7684\u670b\u53cb\u4ee5\u4e3a\u201c\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u201d\u5c31\u662f\u628a\u4e00\u4e2a\u5b89\u88c5\u5305\u4f20\u4e0a\u53bb&#xff0c;\u70b9\u51e0\u4e0b\u4e0b\u4e00\u6b65\u5c31\u5b8c\u4e8b&#xff0c;\u5b9e\u9645\u4e0a\u771f\u6b63\u642d\u5efa\u4e00\u4e2a\u80fd\u7a33\u5b9a\u8bbf\u95ee\u3001\u4e0d\u62a5\u9519\u3001\u80fd\u81ea\u5df1\u63a7\u5236\u7684\u4e2a\u4eba\u7f51\u7ad9&#xff0c;\u4f60\u81f3\u5c11\u8981\u628a\u56db\u5c42\u4e1c\u897f\u914d\u901a&#xff1a;\u57df\u540d\u89e3\u6790\u3001\u670d\u52a1\u5668\u8fd0\u884c\u73af\u5883\u3001\u5efa\u7ad9\u7a0b\u5e8f\u3001HTTPS\u8bc1\u4e66\u3002\u8fd9\u56db\u5c42\u53ea\u8981\u6709\u4e00\u5c42\u914d\u7f6e\u9519\u4e86&#xff0c;\u7f51\u7ad9\u8981\u4e48\u6253\u4e0d\u5f00&#xff0c;\u8981\u4e48\u6253\u5f00\u4e86\u5168\u662f\u6837\u5f0f\u9519\u4e71&#xff0c;\u8981\u4e48\u8fc7\u51e0\u5929\u83ab\u540d\u5176\u5999\u88ab\u6d4f\u89c8\u5668\u62e6\u622a\u3002\n<\/p>\n<p>\n \u800c\u8fd9\u7bc7\u5185\u5bb9\u91cc&#xff0c;\u6211\u4e0d\u6253\u7b97\u8bb2\u90a3\u79cd\u201c\u9762\u677f\u4e00\u952e\u90e8\u7f72\u201d\u7684\u8def\u5b50&#xff0c;\u56e0\u4e3a\u6211\u81ea\u5df1\u8e29\u8fc7\u5751&#xff1a;\u9762\u677f\u867d\u7136\u4e0a\u624b\u5feb&#xff0c;\u4f46\u9694\u4e09\u5dee\u4e94\u51fa\u517c\u5bb9\u6027\u95ee\u9898&#xff0c;\u800c\u4e14\u4f60\u5b8c\u5168\u4e0d\u77e5\u9053\u5b83\u5728\u4f60\u670d\u52a1\u5668\u91cc\u505a\u4e86\u4ec0\u4e48\u64cd\u4f5c\u3002\u6211\u66f4\u63a8\u8350\u7528\u547d\u4ee4\u884c\u624b\u52a8\u914d\u7f6e&#xff0c;\u54ea\u6015\u6162\u4e00\u70b9&#xff0c;\u4f46\u4f60\u6e05\u695a\u6bcf\u4e00\u6b65\u5728\u5e72\u4ec0\u4e48&#xff0c;\u51fa\u95ee\u9898\u65f6\u624d\u6709\u6392\u67e5\u65b9\u5411\u3002\u6bd5\u7adf\u662f\u4e2a\u4eba\u7f51\u7ad9&#xff0c;\u638c\u63a7\u611f\u6bd4\u901f\u5ea6\u91cd\u8981\u3002\n<\/p>\n<h4>\n 1.2 \u6280\u672f\u9009\u578b&#xff1a;\u6bcf\u4e00\u79cd\u9009\u62e9\u80cc\u540e\u90fd\u6709\u4ee3\u4ef7<br \/>\n<\/h4>\n<p>\n \u4e2a\u4eba\u7f51\u7ad9\u7684\u6280\u672f\u6808\u770b\u8d77\u6765\u4e94\u82b1\u516b\u95e8&#xff0c;\u5176\u5b9e\u6838\u5fc3\u51b3\u5b9a\u53ea\u6709\u51e0\u4e2a&#xff1a;\n<\/p>\n<ul>\n<li>\n  \u57df\u540d\u4ece\u54ea\u4e70&#xff1f;\u56fd\u5185\u670d\u52a1\u5546\u8fd8\u662f\u6d77\u5916\u670d\u52a1\u5546&#xff1f;\u8fd9\u51b3\u5b9a\u4e86ICP\u5907\u6848\u8981\u4e0d\u8981\u505a\u3002\n <\/li>\n<li>\n  \u670d\u52a1\u5668\u7528\u54ea\u5bb6&#xff1f;\u865a\u62df\u4e3b\u673a\u8fd8\u662f\u4e91\u670d\u52a1\u5668&#xff1f;\u914d\u7f6e\u591a\u5c11&#xff1f;\n <\/li>\n<li>\n  \u7f51\u7ad9\u7a0b\u5e8f\u9009WordPress\u8fd8\u662fTypecho\u3001Hexo\u8fd9\u79cd\u9759\u6001\u535a\u5ba2&#xff1f;\n <\/li>\n<li>\n  \u6570\u636e\u5e93\u7528MySQL\u8fd8\u662fSQLite&#xff1f;\n <\/li>\n<li>\n  \u8981\u4e0d\u8981\u52a0CDN\u3001Redis\u3001\u4e91\u5b58\u50a8\u8fd9\u4e9b\u9644\u52a0\u7ec4\u4ef6&#xff1f;\n <\/li>\n<\/ul>\n<p>\n \u6211\u7ed9\u4f60\u5206\u4eab\u6211\u6700\u7ec8\u9009\u5b9a\u7684\u65b9\u6848&#xff0c;\u4ee5\u53ca\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u9009\u3002\n<\/p>\n<p>\n \u57df\u540d\u65b9\u9762&#xff0c;\u56e0\u4e3a\u6211\u7684\u7f51\u7ad9\u8bfb\u8005\u4e3b\u8981\u5728\u56fd\u5185&#xff0c;\u6211\u7528\u7684\u662f\u963f\u91cc\u4e91\u8d2d\u4e70\u7684.com\u57df\u540d&#xff0c;\u6309\u89c4\u77e9\u505a\u4e86ICP\u5907\u6848\u3002\u5982\u679c\u4f60\u7528\u6d77\u5916\u670d\u52a1\u5546\u7684\u57df\u540d\u5e76\u4e14\u670d\u52a1\u5668\u4e5f\u653e\u5728\u6d77\u5916&#xff0c;\u53ef\u4ee5\u8df3\u8fc7\u5907\u6848&#xff0c;\u4f46\u56fd\u5185\u8bbf\u95ee\u901f\u5ea6\u4f1a\u4e0d\u7a33\u5b9a\u3002\u6211\u7684\u539f\u5219\u662f&#xff1a;\u9762\u5411\u56fd\u5185\u8bbf\u5ba2\u5c31\u7528\u56fd\u5185\u670d\u52a1\u5546&#043;\u5907\u6848&#xff0c;\u9762\u5411\u5168\u7403\u8bbf\u5ba2\u6216\u8005\u53ea\u662f\u81ea\u5df1\u6d4b\u8bd5\u7528&#xff0c;\u5c31\u9009\u6d77\u5916\u670d\u52a1\u5668&#xff0c;\u7b80\u5355\u7701\u4e8b\u3002\n<\/p>\n<p>\n \u670d\u52a1\u5668\u5c42\u9762&#xff0c;\u6211\u7528\u7684\u662f\u963f\u91cc\u4e91\u7684\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668&#xff0c;2\u68384G\u5185\u5b58&#xff0c;\u5e26\u5bbd5M&#xff0c;\u8dd1\u4e00\u4e2a\u4e2a\u4eba\u535a\u5ba2\u7ef0\u7ef0\u6709\u4f59\u3002\u4f60\u8981\u662f\u7eaf\u65b0\u624b&#xff0c;\u6211\u5efa\u8bae\u6700\u4f4e1\u68382G\u8d77\u6b65&#xff0c;\u4e0d\u8981\u4e70\u90a3\u79cd128M\u5185\u5b58\u7684\u865a\u62df\u4e3b\u673a&#xff0c;\u771f\u7684\u8dd1\u4e0d\u52a8WordPress\u3002\u64cd\u4f5c\u7cfb\u7edf\u9009Ubuntu 22.04 LTS&#xff0c;\u56e0\u4e3a\u5b83\u793e\u533a\u8d44\u6e90\u591a\u3001\u9047\u5230\u95ee\u9898\u5bb9\u6613\u641c\u5230\u7b54\u6848&#xff0c;\u800c\u4e14\u5b98\u65b9\u7ef4\u62a4\u5468\u671f\u957f\u3002\n<\/p>\n<p>\n \u7f51\u7ad9\u7a0b\u5e8f\u6211\u6700\u540e\u9009\u4e86WordPress&#xff0c;\u539f\u56e0\u5f88\u6734\u7d20&#xff1a;\u751f\u6001\u6700\u4e30\u5bcc\u3002\u65e0\u8bba\u662f\u4e3b\u9898\u3001\u63d2\u4ef6\u8fd8\u662f\u95ee\u9898\u89e3\u51b3\u65b9\u6848&#xff0c;\u4f60\u51e0\u4e4e\u90fd\u80fd\u627e\u5230\u73b0\u6210\u7684\u3002Typecho\u66f4\u8f7b\u91cf&#xff0c;\u4f46\u63d2\u4ef6\u548c\u4e3b\u9898\u5c11&#xff0c;\u9002\u5408\u7231\u6298\u817e\u4e14\u4e0d\u6015\u6298\u817e\u7684\u4eba\u3002\u5982\u679c\u4f60\u5199\u6280\u672f\u535a\u5ba2\u4e14\u4e0d\u4ecb\u610f\u7528Markdown\u6587\u4ef6\u7ba1\u7406\u5185\u5bb9&#xff0c;Hexo\u6216Hugo\u8fd9\u79cd\u9759\u6001\u7ad9\u751f\u6210\u5668\u4e5f\u4e0d\u9519&#xff0c;\u4f46\u5b83\u4eec\u6ca1\u6709\u540e\u53f0\u7ba1\u7406\u754c\u9762&#xff0c;\u66f4\u65b0\u6587\u7ae0\u9700\u8981\u672c\u5730\u7f16\u8bd1\u540e\u518d\u63a8\u9001&#xff0c;\u6211\u4e2a\u4eba\u89c9\u5f97\u4e0d\u591f\u76f4\u89c9\u3002\n<\/p>\n<h4>\n 1.3 \u4e3a\u4ec0\u4e48\u4e0d\u7528\u4e00\u952e\u9762\u677f&#xff1a;\u6211\u7684\u5b9e\u9645\u4f53\u4f1a<br \/>\n<\/h4>\n<p>\n \u5f88\u591a\u5e16\u5b50\u63a8\u8350\u5b9d\u5854\u9762\u677f&#xff0c;\u6211\u4e5f\u88c5\u4e86\u8bd5\u8fc7\u3002\u521a\u5f00\u59cb\u786e\u5b9e\u723d&#xff0c;\u53ef\u89c6\u5316\u64cd\u4f5c\u3001\u4e00\u952e\u88c5\u73af\u5883\u3001\u5728\u7ebf\u6539\u6587\u4ef6&#xff0c;\u611f\u89c9\u7279\u522b\u7701\u5fc3\u3002\u4f46\u7528\u4e86\u51e0\u4e2a\u6708\u540e\u6211\u53d1\u73b0\u51e0\u4e2a\u95ee\u9898&#xff1a;\u4e00\u662f\u9762\u677f\u672c\u8eab\u4f1a\u5360\u7528\u4e00\u5b9a\u7cfb\u7edf\u8d44\u6e90&#xff0c;\u5728\u4f4e\u914d\u670d\u52a1\u5668\u4e0a\u5c24\u5176\u660e\u663e&#xff1b;\u4e8c\u662f\u9762\u677f\u4e3a\u4e86\u517c\u5bb9\u4e0d\u540c\u73af\u5883&#xff0c;\u9884\u88c5\u4e86\u5f88\u591a\u4f60\u7528\u4e0d\u5230\u7684\u7ec4\u4ef6&#xff0c;\u589e\u52a0\u4e86\u88ab\u653b\u51fb\u7684\u9762&#xff1b;\u4e09\u662f\u4e00\u65e6\u9762\u677f\u7a0b\u5e8f\u81ea\u8eab\u51fa\u73b0Bug&#xff0c;\u4f60\u53c8\u4e0d\u592a\u4f1a\u4fee&#xff0c;\u6574\u4e2a\u7f51\u7ad9\u5c31\u8ddf\u7740\u762b\u4e86\u3002\n<\/p>\n<p>\n \u540e\u6765\u6211\u5e72\u8106\u91cd\u88c5\u7cfb\u7edf&#xff0c;\u5168\u90e8\u624b\u52a8\u914d\u7f6e&#xff0c;\u53cd\u800c\u89c9\u5f97\u4e16\u754c\u6e05\u9759\u4e86\u3002\u624b\u52a8\u914d\u7f6e\u7684\u5173\u952e\u5c31\u5728\u4e8e\u201c\u4f60\u77e5\u9053\u81ea\u5df1\u5728\u505a\u4ec0\u4e48\u201d&#xff0c;Nginx\u914d\u7f6e\u6587\u4ef6\u91cc\u6bcf\u4e00\u884c\u662f\u5e72\u4ec0\u4e48\u7684&#xff0c;MySQL\u7528\u6237\u6743\u9650\u662f\u4ec0\u4e48\u610f\u601d&#xff0c;SSL\u8bc1\u4e66\u7eed\u671f\u811a\u672c\u4ec0\u4e48\u65f6\u5019\u8dd1&#xff0c;\u8fd9\u4e9b\u90fd\u6e05\u6e05\u695a\u695a&#xff0c;\u51fa\u95ee\u9898\u4e86\u4f60\u4e0d\u4f1a\u614c\u3002\u8fd9\u7bc7\u535a\u6587\u91cc\u7684\u6240\u6709\u914d\u7f6e\u90fd\u662f\u8d70\u8fd9\u4e2a\u8def\u7ebf\u7684&#xff0c;\u4f60\u5728\u770b\u7684\u65f6\u5019\u4e5f\u53ef\u4ee5\u6309\u81ea\u5df1\u7684\u670d\u52a1\u5668\u60c5\u51b5\u8c03\u6574\u3002\n<\/p>\n<h3>\n 2. \u6838\u5fc3\u7ec6\u8282\u89e3\u6790\u4e0e\u5b9e\u64cd\u8981\u70b9<br \/>\n<\/h3>\n<h4>\n 2.1 \u670d\u52a1\u5668\u521d\u59cb\u5316&#xff1a;\u4e0d\u8981\u8df3\u8fc7\u8fd9\u4e9b\u57fa\u7840\u52a8\u4f5c<br \/>\n<\/h4>\n<p>\n \u6211\u7b2c\u4e00\u6b21\u914d\u7f6e\u670d\u52a1\u5668\u65f6&#xff0c;\u56e0\u4e3a\u56fe\u5feb&#xff0c;\u5f88\u591a\u521d\u59cb\u5316\u6b65\u9aa4\u76f4\u63a5\u8df3\u8fc7\u4e86&#xff0c;\u7ed3\u679c\u540e\u9762\u5403\u4e86\u5927\u4e8f\u3002\u8fd9\u91cc\u628a\u5fc5\u505a\u7684\u52a8\u4f5c\u5217\u51fa\u6765&#xff0c;\u6bcf\u4e00\u6b65\u90fd\u4e0d\u8981\u7701\u3002\n<\/p>\n<p>\n \u66f4\u65b0\u7cfb\u7edf\u8f6f\u4ef6\u6e90\u662f\u7b2c\u4e00\u6b65\u3002Ubuntu\u521a\u88c5\u597d\u65f6&#xff0c;\u8f6f\u4ef6\u6e90\u662f\u6700\u539f\u59cb\u7684\u7248\u672c&#xff0c;\u76f4\u63a5\u5b89\u88c5Nginx\u5f88\u6709\u53ef\u80fd\u88c5\u5230\u65e7\u7248\u672c\u3002\u6267\u884c&#xff1a;\n<\/p>\n<p>sudo apt update &amp;&amp; sudo apt upgrade -y<\/p>\n<p>\n \u8fd9\u4e00\u6b65\u4f1a\u628a\u7cfb\u7edf\u91cc\u7684\u6240\u6709\u8f6f\u4ef6\u5305\u66f4\u65b0\u5230\u5f53\u524d\u8f6f\u4ef6\u6e90\u7684\u6700\u65b0\u72b6\u6001&#xff0c;\u540c\u65f6\u628a\u4e00\u4e9b\u5b89\u5168\u8865\u4e01\u6253\u4e0a\u3002\u5c24\u5176\u662f\u65b0\u51fa\u7684\u5b89\u5168\u6f0f\u6d1e\u8865\u4e01&#xff0c;\u5f88\u591a\u65f6\u5019\u5c31\u9760\u8fd9\u6b21\u66f4\u65b0\u6765\u5e26\u4e0a\u3002\n<\/p>\n<p>\n \u63a5\u7740\u521b\u5efa\u4e00\u4e2a\u666e\u901a\u7528\u6237&#xff0c;\u522b\u76f4\u63a5\u7528root\u8dd1\u7f51\u7ad9\u3002root\u6743\u9650\u592a\u5927&#xff0c;\u4e00\u65e6\u7f51\u7ad9\u7a0b\u5e8f\u88ab\u5229\u7528&#xff0c;\u653b\u51fb\u8005\u53ef\u80fd\u76f4\u63a5\u63a7\u5236\u6574\u53f0\u670d\u52a1\u5668\u3002\u521b\u5efa\u7528\u6237\u7684\u65f6\u5019\u987a\u624b\u52a0\u5165sudo\u7ec4&#xff1a;\n<\/p>\n<p>sudo adduser yourname<br \/>\nsudo usermod -aG sudo yourname<\/p>\n<p>\n \u7136\u540e\u4fee\u6539SSH\u914d\u7f6e\u3002\u4e3a\u4e86\u5b89\u5168&#xff0c;\u6211\u5efa\u8bae\u6539\u6389\u9ed8\u8ba4\u768422\u7aef\u53e3&#xff0c;\u540c\u65f6\u7981\u6b62root\u76f4\u63a5\u767b\u5f55\u3002\u4fee\u6539<\/p>\n<p>  \/etc\/ssh\/sshd_config<\/p>\n<p> \u6587\u4ef6&#xff0c;\u627e\u5230<\/p>\n<p>  #Port 22<\/p>\n<p> \u8fd9\u4e00\u884c\u6539\u6210\u81ea\u5b9a\u4e49\u7aef\u53e3\u53f7&#xff0c;\u6bd4\u5982<\/p>\n<p>  Port 22522<\/p>\n<p> &#xff0c;\u627e\u5230<\/p>\n<p>  PermitRootLogin yes<\/p>\n<p> \u6539\u6210<\/p>\n<p>  PermitRootLogin no<\/p>\n<p> &#xff0c;\u6539\u5b8c\u91cd\u542fSSH\u670d\u52a1&#xff1a;\n<\/p>\n<p>sudo systemctl restart sshd<\/p>\n<p>\n \u8fd9\u91cc\u63d0\u9192\u4e00\u4e0b&#xff1a;\u6539SSH\u7aef\u53e3\u524d\u5148\u786e\u4fdd\u9632\u706b\u5899\u653e\u884c\u4e86\u65b0\u7aef\u53e3&#xff0c;\u4e0d\u7136\u4f60\u4f1a\u628a\u81ea\u5df1\u9501\u5728\u670d\u52a1\u5668\u5916\u9762\u3002\u7528Ubuntu\u81ea\u5e26\u7684UFW\u9632\u706b\u5899\u7684\u8bdd&#xff0c;\u5148\u653e\u884c\u65b0\u7aef\u53e3\u518d\u91cd\u542fSSH\u670d\u52a1&#xff0c;\u987a\u5e8f\u4e00\u5b9a\u4e0d\u80fd\u53cd\u3002\n<\/p>\n<h4>\n 2.2 Web\u73af\u5883\u5b89\u88c5&#xff1a;Nginx\u3001PHP\u3001\u6570\u636e\u5e93\u7684\u7248\u672c\u642d\u914d<br \/>\n<\/h4>\n<p>\n \u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u91cc\u6700\u5bb9\u6613\u51fa\u9519\u7684\u5c31\u662f\u73af\u5883\u7248\u672c\u4e0d\u517c\u5bb9\u3002\u6211\u63a8\u8350\u7684\u7ec4\u5408\u662fNginx 1.18\u4ee5\u4e0a &#043; PHP 8.1\u4ee5\u4e0a &#043; MySQL 8.0&#xff0c;\u8fd9\u4e2a\u7ec4\u5408\u5f88\u6210\u719f&#xff0c;WordPress\u6700\u65b0\u7248\u5b8c\u5168\u517c\u5bb9\u3002\n<\/p>\n<p>\n \u5b89\u88c5Nginx\u5f88\u7b80\u5355&#xff1a;\n<\/p>\n<p>sudo apt install nginx -y<\/p>\n<p>\n \u5b89\u88c5PHP\u65f6\u8981\u6ce8\u610f&#xff0c;\u5149\u88c5php-fpm\u8fd8\u4e0d\u591f&#xff0c;\u8fd8\u5f97\u88c5\u4e00\u5806\u6269\u5c55\u63d2\u4ef6&#xff0c;\u5426\u5219WordPress\u4f1a\u62a5\u7f3a\u5c11\u51fd\u6570\u3002\u6211\u5efa\u8bae\u4e00\u6b21\u88c5\u5168&#xff1a;\n<\/p>\n<p>sudo apt install php php-fpm php-mysql php-curl php-gd php-mbstring php-xml php-xmlrpc php-zip php-imagick php-intl -y<\/p>\n<p>\n \u6570\u636e\u5e93\u5b89\u88c5MySQL\u670d\u52a1\u7aef&#xff1a;\n<\/p>\n<p>sudo apt install mysql-server -y<\/p>\n<p>\n \u88c5\u5b8c\u540e\u6267\u884c\u5b89\u5168\u521d\u59cb\u5316\u811a\u672c&#xff0c;\u5b83\u4f1a\u8ba9\u4f60\u8bbe\u7f6eroot\u5bc6\u7801\u3001\u5220\u9664\u533f\u540d\u7528\u6237\u3001\u7981\u6b62\u8fdc\u7a0broot\u767b\u5f55&#xff0c;\u6309\u63d0\u793a\u4e00\u6b65\u6b65\u9009\u5c31\u884c&#xff1a;\n<\/p>\n<p>sudo mysql_secure_installation<\/p>\n<p>\n \u5173\u4e8ePHP\u7248\u672c&#xff0c;\u6709\u4e9b\u8001\u6559\u7a0b\u8ba9\u4f60\u88c55.6\u62167.x&#xff0c;\u4f46\u90a3\u4e9b\u7248\u672c\u73b0\u5728\u5df2\u7ecf\u505c\u6b62\u5b89\u5168\u66f4\u65b0\u4e86&#xff0c;\u522b\u7528\u3002PHP 8.1\u7684\u5730\u6bb5\u6027\u80fd\u4e5f\u6bd4\u8001\u7248\u672c\u597d\u5f88\u591a&#xff0c;\u5c24\u5176\u662fWordPress\u642d\u914dOpcache\u6269\u5c55\u540e&#xff0c;\u9875\u9762\u54cd\u5e94\u901f\u5ea6\u63d0\u5347\u975e\u5e38\u660e\u663e\u3002\n<\/p>\n<h4>\n 2.3 \u6570\u636e\u5e93\u548c\u7f51\u7ad9\u76ee\u5f55\u7684\u6743\u9650\u89c4\u5212<br \/>\n<\/h4>\n<p>\n \u5b89\u88c5\u5b8c\u6210\u4e0d\u7b49\u4e8e\u914d\u7f6e\u5b8c\u6210\u3002\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u91cc\u6700\u5bb9\u6613\u88ab\u5ffd\u7565\u7684\u662f\u201c\u6700\u5c0f\u6743\u9650\u539f\u5219\u201d\u5b9e\u64cd\u7248\u3002\n<\/p>\n<p>\n \u9996\u5148\u5efa\u6570\u636e\u5e93\u548c\u7528\u6237&#xff0c;\u8fd9\u91cc\u4e0d\u76f4\u63a5\u7528root\u8dd1\u7f51\u7ad9&#xff0c;\u800c\u662f\u5355\u72ec\u7ed9\u7f51\u7ad9\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\u8d26\u53f7&#xff1a;\n<\/p>\n<p>sudo mysql -u root -p<\/p>\n<p>\n \u8fdb\u5165MySQL\u547d\u4ee4\u884c\u540e\u521b\u5efa\u6570\u636e\u5e93\u548c\u7528\u6237\u3002\u4f60\u81ea\u5df1\u8bb0\u597d\u5bc6\u7801&#xff0c;\u540e\u9762WordPress\u5b89\u88c5\u65f6\u8981\u586b&#xff1a;\n<\/p>\n<p>CREATE DATABASE wp_database DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;<br \/>\nCREATE USER &#039;wp_user&#039;&#064;&#039;localhost&#039; IDENTIFIED BY &#039;\u4f60\u7684\u5f3a\u5bc6\u7801&#039;;<br \/>\nGRANT ALL PRIVILEGES ON wp_database.* TO &#039;wp_user&#039;&#064;&#039;localhost&#039;;<br \/>\nFLUSH PRIVILEGES;<br \/>\nEXIT;<\/p>\n<p>\n \u6570\u636e\u5e93\u5b57\u7b26\u96c6\u4e00\u5b9a\u8981\u7528utf8mb4&#xff0c;\u4e0d\u8981\u7528\u8001\u65e7\u7684utf8&#xff0c;\u56e0\u4e3a\u540e\u8005\u5b58\u4e0d\u4e86emoji\u548c\u751f\u50fb\u5b57&#xff0c;\u6bd4\u5982\u6587\u7ae0\u6807\u9898\u91cc\u5e26\u56db\u5b57\u8282\u5b57\u7b26\u65f6\u4f1a\u663e\u793a\u6210\u95ee\u53f7\u3002\n<\/p>\n<p>\n \u7f51\u7ad9\u76ee\u5f55\u6211\u653e\u5728<\/p>\n<p>  \/var\/www\/html<\/p>\n<p> \u4e0b&#xff0c;\u8fd9\u4e2a\u76ee\u5f55\u5bf9\u5e94\u7684Nginx\u914d\u7f6e\u5728\u540e\u9762\u7684\u7ad9\u70b9\u914d\u7f6e\u91cc\u4f1a\u7528\u5230\u3002\u76ee\u5f55\u6743\u9650\u5efa\u8bae\u8fd9\u6837\u8bbe\u7f6e&#xff1a;\n<\/p>\n<p>sudo mkdir -p \/var\/www\/html<br \/>\nsudo chown -R www-data:www-data \/var\/www\/html<br \/>\nsudo chmod -R 755 \/var\/www\/html<\/p>\n<p>\n \u5176\u4e2d<\/p>\n<p>  www-data<\/p>\n<p> \u662fNginx\u548cPHP-FPM\u7684\u9ed8\u8ba4\u8fd0\u884c\u7528\u6237&#xff0c;\u628a\u76ee\u5f55owner\u6539\u6210\u5b83&#xff0c;\u7f51\u7ad9\u7a0b\u5e8f\u624d\u80fd\u6b63\u5e38\u8bfb\u5199\u6587\u4ef6\u3002\u4f60\u540e\u7eed\u5982\u679c\u901a\u8fc7FTP\u6216SFTP\u4e0a\u4f20\u4e3b\u9898\u3001\u63d2\u4ef6&#xff0c;\u4e5f\u9700\u8981\u7528\u4e00\u4e2a\u80fd\u5199\u5165\u8be5\u76ee\u5f55\u7684\u7528\u6237&#xff0c;\u800c\u4e0d\u662f\u76f4\u63a5\u7ed9777\u6743\u9650\u3002777\u6743\u9650\u592a\u5371\u9669&#xff0c;\u4efb\u610f\u7528\u6237\u90fd\u80fd\u6539\u6587\u4ef6&#xff0c;\u7f51\u7ad9\u5f88\u5bb9\u6613\u88ab\u7be1\u6539\u3002\n<\/p>\n<h3>\n 3. \u5b9e\u64cd\u8fc7\u7a0b\u4e0e\u6838\u5fc3\u73af\u8282\u5b9e\u73b0<br \/>\n<\/h3>\n<h4>\n 3.1 \u57df\u540d\u89e3\u6790&#xff1a;\u8bb0\u5f55\u7c7b\u578b\u522b\u9009\u9519<br \/>\n<\/h4>\n<p>\n \u57df\u540d\u89e3\u6790\u662f\u6574\u4e2a\u914d\u7f6e\u8fc7\u7a0b\u4e2d\u6700\u57fa\u7840\u4e5f\u6700\u76f4\u89c2\u7684\u4e00\u6b65\u3002\u6211\u7684\u57df\u540d\u5728\u963f\u91cc\u4e91\u63a7\u5236\u53f0\u64cd\u4f5c&#xff0c;\u539f\u7406\u901a\u7528&#xff1a;\u53bb\u4f60\u7684\u57df\u540d\u670d\u52a1\u5546\u540e\u53f0&#xff0c;\u627e\u5230\u201c\u89e3\u6790\u8bbe\u7f6e\u201d\u6216\u201cDNS\u7ba1\u7406\u201d&#xff0c;\u6dfb\u52a0\u89e3\u6790\u8bb0\u5f55\u3002\n<\/p>\n<p>\n \u5982\u679c\u4f60\u7684\u7f51\u7ad9\u670d\u52a1\u5668\u53ea\u6709\u4e00\u4e2aIPv4\u5730\u5740&#xff0c;\u9700\u8981\u4e24\u6761\u8bb0\u5f55&#xff1a;\n<\/p>\n<ul>\n<li>\n  \u4e3b\u673a\u8bb0\u5f55\u586b<\/p>\n<p>   &#064;<\/p>\n<p>  &#xff0c;\u8bb0\u5f55\u7c7b\u578b\u9009A&#xff0c;\u8bb0\u5f55\u503c\u586b\u670d\u52a1\u5668\u516c\u7f51IP\u3002\n <\/li>\n<li>\n  \u4e3b\u673a\u8bb0\u5f55\u586b<\/p>\n<p>   www<\/p>\n<p>  &#xff0c;\u8bb0\u5f55\u7c7b\u578b\u9009A&#xff0c;\u8bb0\u5f55\u503c\u586b\u76f8\u540c\u7684IP\u3002\n <\/li>\n<\/ul>\n<p>\n \u8fd9\u4e2a<\/p>\n<p>  &#064;<\/p>\n<p> \u4ee3\u8868\u6839\u57df\u540d&#xff0c;\u522b\u4eba\u8bbf\u95ee<\/p>\n<p>  example.com<\/p>\n<p> \u65f6\u5339\u914d\u7684\u5c31\u662f\u5b83&#xff1b;<\/p>\n<p>  www<\/p>\n<p> \u662f\u6307<\/p>\n<p>  www.example.com<\/p>\n<p> \u3002IP\u586b\u4e0d\u5bf9\u6216\u8005\u6f0f\u4e86\u4e00\u6761&#xff0c;\u8bbf\u95ee\u65f6\u5c31\u89e3\u6790\u4e0d\u5230\u670d\u52a1\u5668\u3002\n<\/p>\n<p>\n \u8fd8\u6709\u4e00\u4e2a\u5e38\u89c1\u7684\u5751\u662f\u89e3\u6790\u8bb0\u5f55\u88ab\u4e4b\u524d\u7684\u65e7\u8bb0\u5f55\u5360\u7528\u3002\u6bd4\u5982\u4f60\u57df\u540d\u66fe\u7ecf\u7ed1\u8fc7\u522b\u7684\u4e3b\u673a&#xff0c;IP\u503c\u65e9\u5c31\u53d8\u4e86&#xff0c;\u4f46\u65e7\u8bb0\u5f55\u6ca1\u5220\u6389&#xff0c;\u5bfc\u81f4\u65b0\u914d\u7f6e\u7684\u7ad9\u70b9\u600e\u4e48\u90fd\u8bbf\u95ee\u4e0d\u4e86\u3002\u6211\u5efa\u8bae\u5728\u6dfb\u52a0\u65b0\u8bb0\u5f55\u524d&#xff0c;\u5148\u6e05\u6389\u540c\u4e3b\u673a\u540d\u7684\u65e7\u8bb0\u5f55&#xff0c;\u518d\u91cd\u65b0\u6dfb\u52a0\u3002\n<\/p>\n<p>\n DNS\u751f\u6548\u65f6\u95f4\u4e0d\u662f\u5b9e\u65f6\u7684\u3002\u6709\u7684\u5730\u533a\u51e0\u5206\u949f\u5c31\u751f\u6548&#xff0c;\u6709\u7684\u8981\u7b49\u51e0\u5c0f\u65f6\u3002\u53ef\u4ee5\u5728\u81ea\u5df1\u7684\u7535\u8111\u4e0a\u6253\u5f00\u547d\u4ee4\u884c\u6267\u884c<\/p>\n<p>  ping example.com<\/p>\n<p> \u770b\u770b\u8fd4\u56de\u7684IP\u662f\u4e0d\u662f\u4f60\u7684\u670d\u52a1\u5668IP&#xff0c;\u5982\u679c\u5bf9\u4e0d\u4e0a&#xff0c;\u4e0d\u8981\u7740\u6025&#xff0c;\u7b49\u4e00\u7b49\u518d\u8bd5\u3002\n<\/p>\n<h4>\n 3.2 SSL\u8bc1\u4e66\u7533\u8bf7\u4e0e\u914d\u7f6e&#xff1a;\u7528Certbot\u6700\u7701\u5fc3<br \/>\n<\/h4>\n<p>\n \u7f51\u7ad9\u6ca1\u6709HTTPS\u8bc1\u4e66\u7684\u8bdd&#xff0c;\u6d4f\u89c8\u5668\u5730\u5740\u680f\u4f1a\u63d0\u793a\u201c\u4e0d\u5b89\u5168\u201d&#xff0c;\u800c\u4e14\u67d0\u4e9b\u529f\u80fd\u4f1a\u88ab\u6d4f\u89c8\u5668\u9650\u5236&#xff0c;\u6bd4\u5982\u83b7\u53d6\u7528\u6237\u5730\u7406\u4f4d\u7f6e\u3001\u901a\u77e5\u6743\u9650\u7b49\u3002\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u4e2d\u6211\u5f3a\u70c8\u5efa\u8bae\u4e0aHTTPS&#xff0c;\u73b0\u5728\u7533\u8bf7\u514d\u8d39\u8bc1\u4e66\u5f88\u65b9\u4fbf\u3002\n<\/p>\n<p>\n Certbot\u662fLet\u2018s Encrypt\u7684\u5b98\u65b9\u5ba2\u6237\u7aef&#xff0c;\u914d\u5408Nginx\u63d2\u4ef6\u53ef\u4ee5\u81ea\u52a8\u5b8c\u6210\u8bc1\u4e66\u7533\u8bf7\u548c\u914d\u7f6e&#xff1a;\n<\/p>\n<p>sudo apt install certbot python3-certbot-nginx -y<br \/>\nsudo certbot &#8211;nginx -d example.com -d www.example.com<\/p>\n<p>\n \u6267\u884c\u8fc7\u7a0b\u4e2d\u4f1a\u8ba9\u4f60\u586b\u5199\u4e00\u4e2a\u7528\u4e8e\u63a5\u6536\u8fc7\u671f\u901a\u77e5\u7684\u90ae\u7bb1\u5730\u5740&#xff0c;\u7136\u540e\u540c\u610f\u670d\u52a1\u6761\u6b3e\u3002\u6210\u529f\u540e\u4f1a\u95ee\u4f60\u201c\u662f\u5426\u81ea\u52a8\u628aHTTP\u8bf7\u6c42\u91cd\u5b9a\u5411\u5230HTTPS\u201d&#xff0c;\u6839\u636e\u81ea\u5df1\u9700\u8981\u9009\u62e9\u3002\u6211\u4e00\u822c\u90092&#xff0c;\u81ea\u52a8\u505a\u8df3\u8f6c&#xff0c;\u7701\u5f97\u540e\u9762\u518d\u6539Nginx\u914d\u7f6e\u3002\n<\/p>\n<p>\n \u8bc1\u4e66\u6709\u6548\u671f\u662f90\u5929&#xff0c;Certbot\u53ef\u4ee5\u5728\u8bc1\u4e66\u5230\u671f\u524d\u81ea\u52a8\u7eed\u671f\u3002\u5b98\u65b9\u63a8\u8350\u7684\u65b9\u5f0f\u662f\u6dfb\u52a0\u4e00\u4e2a\u5b9a\u65f6\u4efb\u52a1&#xff0c;\u6211\u7528\u7684\u547d\u4ee4&#xff1a;\n<\/p>\n<p>sudo crontab -e<\/p>\n<p>\n \u5728\u6253\u5f00\u7684\u7f16\u8f91\u754c\u9762\u5e95\u90e8\u52a0\u4e00\u884c&#xff1a;\n<\/p>\n<p>0 3 * * * \/usr\/bin\/certbot renew &#8211;quiet &#8211;renew-hook &#034;systemctl reload nginx&#034;<\/p>\n<p>\n \u8fd9\u884c\u7684\u610f\u601d\u662f\u6bcf\u5929\u51cc\u66683\u70b9\u68c0\u67e5\u4e00\u6b21\u8bc1\u4e66\u72b6\u6001&#xff0c;\u5982\u679c\u9700\u8981\u7eed\u671f\u5c31\u7eed&#xff0c;\u7eed\u5b8c\u540e\u81ea\u52a8\u91cd\u8f7dNginx\u8ba9\u65b0\u8bc1\u4e66\u751f\u6548\u3002Certbot\u81ea\u5e26\u968f\u673a\u5ef6\u65f6\u673a\u5236&#xff0c;\u4e0d\u4f1a\u7ed9\u4f60\u7684\u57df\u540d\u670d\u52a1\u5546\u9020\u6210\u63a5\u53e3\u538b\u529b\u3002\n<\/p>\n<h4>\n 3.3 Nginx\u7ad9\u70b9\u914d\u7f6e&#xff1a;\u624b\u5199\u914d\u7f6e\u5176\u5b9e\u4e0d\u96be<br \/>\n<\/h4>\n<p>\n Nginx\u7684\u7ad9\u70b9\u914d\u7f6e\u6587\u4ef6\u653e\u5728<\/p>\n<p>  \/etc\/nginx\/sites-available\/<\/p>\n<p> &#xff0c;\u542f\u7528\u5219\u662f\u5728<\/p>\n<p>  sites-enabled<\/p>\n<p> \u76ee\u5f55\u91cc\u521b\u5efa\u8f6f\u94fe\u63a5\u3002\u6211\u5199\u4e00\u4e2a\u57fa\u7840\u4f46\u5b8c\u6574\u7684\u914d\u7f6e&#xff1a;\n<\/p>\n<p>server {<br \/>\n    listen 80;<br \/>\n    server_name example.com www.example.com;<\/p>\n<p>    root \/var\/www\/html;<br \/>\n    index index.php index.html index.htm;<\/p>\n<p>    access_log \/var\/log\/nginx\/myblog_access.log;<br \/>\n    error_log \/var\/log\/nginx\/myblog_error.log;<\/p>\n<p>    location \/ {<br \/>\n        try_files $uri $uri\/ \/index.php?$args;<br \/>\n    }<\/p>\n<p>    location ~ \\\\.php$ {<br \/>\n        include snippets\/fastcgi-php.conf;<br \/>\n        fastcgi_pass unix:\/run\/php\/php8.1-fpm.sock;<br \/>\n    }<\/p>\n<p>    location ~* \\\\.(jpg|jpeg|png|gif|ico|css|js|woff2?)$ {<br \/>\n        expires 30d;<br \/>\n        add_header Cache-Control &#034;public, immutable&#034;;<br \/>\n    }<\/p>\n<p>    location ~ \/\\\\.ht {<br \/>\n        deny all;<br \/>\n    }<br \/>\n}<\/p>\n<p>\n \u8fd9\u6bb5\u914d\u7f6e\u91cc\u5f88\u591a\u4eba\u770b\u4e0d\u61c2<\/p>\n<p>  try_files $uri $uri\/ \/index.php?$args;<\/p>\n<p> \u8fd9\u884c\u7684\u610f\u601d\u3002\u5b83\u7684\u4f5c\u7528\u662f&#xff1a;\u5f53\u7528\u6237\u8bbf\u95ee\u4e00\u4e2a\u8def\u5f84\u65f6&#xff0c;\u5148\u5728\u7f51\u7ad9\u76ee\u5f55\u91cc\u627e\u6709\u6ca1\u6709\u5bf9\u5e94\u7684\u9759\u6001\u6587\u4ef6&#xff0c;\u6709\u5c31\u76f4\u63a5\u8fd4\u56de&#xff1b;\u6ca1\u6709\u5c31\u628a\u8bf7\u6c42\u8f6c\u7ed9<\/p>\n<p>  index.php<\/p>\n<p> \u5904\u7406\u3002\u8fd9\u662fWordPress\u8fd9\u7c7b\u52a8\u6001\u7f51\u7ad9\u7684\u901a\u884c\u914d\u7f6e&#xff0c;\u5982\u679c\u6ca1\u6709\u8fd9\u884c&#xff0c;\u53bb\u8bbf\u95ee\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u5206\u7c7b\u9875\u65f6\u4f1a\u76f4\u63a5404\u3002\n<\/p>\n<p>\n PHP-FPM\u7684socket\u8def\u5f84\u8981\u6839\u636e\u4f60\u5b89\u88c5\u7684PHP\u7248\u672c\u586b&#xff0c;\u6211\u8fd9\u91cc\u662f8.1\u3002\u4f60\u67e5\u770b\u4e00\u4e0b\u81ea\u5df1\u7684<\/p>\n<p>  sites-enabled<\/p>\n<p> \u91cc\u6709\u6ca1\u6709\u7c7b\u4f3c\u7684include\u8def\u5f84&#xff0c;\u4e0d\u4f1a\u53ef\u4ee5\u6267\u884c<\/p>\n<p>  dpkg -l | grep php<\/p>\n<p> \u770b\u5b89\u88c5\u7684\u662f\u54ea\u4e2a\u7248\u672c\u3002\n<\/p>\n<p>\n \u4fdd\u5b58\u914d\u7f6e\u540e&#xff0c;\u5148\u6d4b\u8bd5\u4e00\u4e0b\u8bed\u6cd5&#xff1a;\n<\/p>\n<p>sudo nginx -t<\/p>\n<p>\n \u770b\u5230<\/p>\n<p>  test is successful<\/p>\n<p> \u518d\u91cd\u8f7d&#xff1a;\n<\/p>\n<p>sudo systemctl reload nginx<\/p>\n<h4>\n 3.4 \u5b89\u88c5WordPress\u5230\u6307\u5b9a\u76ee\u5f55<br \/>\n<\/h4>\n<p>\n \u4e0b\u8f7dWordPress\u6211\u5efa\u8bae\u4ece\u5b98\u7f51\u4e0b\u8f7d\u4e2d\u6587\u5305&#xff0c;\u56fd\u5185\u670d\u52a1\u5668\u8bbf\u95ee\u5b98\u7f51\u6bd4\u8f83\u6162&#xff0c;\u53ef\u4ee5\u7528\u56fd\u5185\u7684\u955c\u50cf\u7ad9\u3002\u8fd9\u91cc\u53ea\u6f14\u793a\u6807\u51c6\u6d41\u7a0b&#xff1a;\n<\/p>\n<p>cd \/tmp<br \/>\nwget https:\/\/cn.wordpress.org\/latest-zh_CN.tar.gz<br \/>\ntar -xzf latest-zh_CN.tar.gz<br \/>\nsudo cp -r wordpress\/* \/var\/www\/html\/<br \/>\nsudo chown -R www-data:www-data \/var\/www\/html\/<\/p>\n<p>\n \u7136\u540e\u8bbf\u95ee<\/p>\n<p>  https:\/\/example.com<\/p>\n<p> &#xff0c;WordPress\u5b89\u88c5\u5411\u5bfc\u4f1a\u81ea\u52a8\u8df3\u51fa\u6765\u3002\u586b\u4e0a\u4e4b\u524d\u521b\u5efa\u7684\u6570\u636e\u5e93\u540d\u3001\u6570\u636e\u5e93\u7528\u6237\u540d\u548c\u6570\u636e\u5e93\u5bc6\u7801&#xff0c;\u6570\u636e\u5e93\u4e3b\u673a\u9ed8\u8ba4\u586b<\/p>\n<p>  localhost<\/p>\n<p> &#xff0c;\u8868\u524d\u7f00\u53ef\u4ee5\u4fdd\u6301\u9ed8\u8ba4<\/p>\n<p>  wp_<\/p>\n<p> &#xff0c;\u9664\u975e\u4f60\u6709\u5f88\u5f3a\u7684\u5b89\u5168\u6d01\u7656&#xff0c;\u5426\u5219\u4e0d\u5efa\u8bae\u6539&#xff0c;\u56e0\u4e3a\u6539\u4e86\u4e4b\u540e\u5f88\u591a\u63d2\u4ef6\u9ed8\u8ba4\u5199\u6cd5\u4f1a\u6709\u517c\u5bb9\u95ee\u9898\u3002\n<\/p>\n<p>\n \u5b89\u88c5\u5411\u5bfc\u7684\u6700\u540e\u4e00\u6b65\u4f1a\u8ba9\u4f60\u586b\u7ad9\u70b9\u6807\u9898\u3001\u7ba1\u7406\u5458\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002\u7ba1\u7406\u5458\u7528\u6237\u540d\u522b\u7528<\/p>\n<p>  admin<\/p>\n<p> &#xff0c;\u73b0\u5728\u5f88\u591a\u4eba\u7b2c\u4e00\u8f6e\u626b\u63cf\u5c31\u662f\u7528<\/p>\n<p>  admin<\/p>\n<p> \u5c1d\u8bd5\u767b\u5f55\u540e\u53f0&#xff0c;\u5f3a\u70c8\u5efa\u8bae\u6362\u6210\u4f60\u81ea\u5df1\u62fc\u7684\u3001\u4e0d\u5bb9\u6613\u731c\u7684\u8bcd\u3002\n<\/p>\n<h3>\n 4. \u5e38\u89c1\u95ee\u9898\u4e0e\u6392\u67e5\u6280\u5de7\u5b9e\u5f55<br \/>\n<\/h3>\n<h4>\n 4.1 \u7f51\u7ad9\u6253\u4e0d\u5f00&#xff1a;\u6309\u8fd9\u4e2a\u987a\u5e8f\u6392\u67e5<br \/>\n<\/h4>\n<p>\n \u6211\u9047\u5230\u88ab\u95ee\u5f97\u6700\u591a\u7684\u95ee\u9898\u5c31\u662f\u201c\u7f51\u7ad9\u6253\u4e0d\u5f00\u4e86\u201d&#xff0c;\u8fd9\u4e2a\u63cf\u8ff0\u592a\u7b3c\u7edf\u4e86&#xff0c;\u6211\u5efa\u8bae\u4f60\u81ea\u5df1\u5148\u6309\u987a\u5e8f\u6392\u67e5&#xff0c;\u5927\u90e8\u5206\u95ee\u9898\u53ef\u4ee5\u81ea\u5df1\u89e3\u51b3\u3002\n<\/p>\n<p>\n \u5148\u770b\u57df\u540d\u89e3\u6790\u662f\u5426\u6b63\u5e38\u3002\u5728\u4f60\u672c\u5730\u7535\u8111\u7684\u7ec8\u7aef\u91cc\u6267\u884c&#xff1a;\n<\/p>\n<p>ping example.com<\/p>\n<p>\n \u5982\u679c\u57df\u540d\u89e3\u6790\u51fa\u7684IP\u4e0d\u662f\u4f60\u670d\u52a1\u5668\u7684IP&#xff0c;\u8bf4\u660e\u89e3\u6790\u8bb0\u5f55\u6709\u95ee\u9898&#xff0c;\u6216\u8005\u662f\u8fd8\u6ca1\u751f\u6548\u3002\u5982\u679c\u89e3\u6790\u6b63\u5e38&#xff0c;\u63a5\u7740\u68c0\u67e5\u670d\u52a1\u5668\u7aef\u53e3\u662f\u5426\u4e3a\u5916\u7f51\u5f00\u653e\u3002\u7528\u53e6\u4e00\u4e2a\u7ec8\u7aef\u5de5\u5177\u6267\u884c<\/p>\n<p>  telnet \u670d\u52a1\u5668IP 80<\/p>\n<p> &#xff0c;\u5982\u679c\u8fde\u63a5\u5931\u8d25&#xff0c;\u5927\u6982\u7387\u662f\u4e91\u670d\u52a1\u5546\u5b89\u5168\u7ec4\u6216\u9632\u706b\u5899\u6ca1\u6709\u653e\u884c80\u548c443\u7aef\u53e3\u3002\u8fd9\u4e00\u6b65\u6700\u5bb9\u6613\u5ffd\u7565&#xff0c;\u5f88\u591a\u4ebaNginx\u914d\u5f97\u597d\u597d\u7684&#xff0c;\u4f46\u4e91\u63a7\u5236\u53f0\u7684\u5b89\u5168\u7ec4\u5fd8\u4e86\u5f00\u7aef\u53e3&#xff0c;\u7f51\u7ad9\u6b7b\u6d3b\u6253\u4e0d\u5f00\u3002\n<\/p>\n<p>\n \u7136\u540e\u770bNginx\u8fdb\u7a0b\u548cPHP-FPM\u8fdb\u7a0b\u662f\u5426\u5728\u8fd0\u884c&#xff1a;\n<\/p>\n<p>sudo systemctl status nginx<br \/>\nsudo systemctl status php8.1-fpm<\/p>\n<p>\n \u5982\u679c\u8fdb\u7a0b\u90fd\u662factive&#xff0c;\u518d\u53bb\u770b\u9519\u8bef\u65e5\u5fd7&#xff0c;Nginx\u9ed8\u8ba4\u65e5\u5fd7\u8def\u5f84\u5c31\u662f\u6211\u5728\u914d\u7f6e\u91cc\u5199\u7684<\/p>\n<p>  \/var\/log\/nginx\/<\/p>\n<p> \u4e0b\u9762\u7684error.log\u6587\u4ef6&#xff0c;\u6211\u6bcf\u6b21\u6392\u67e5\u95ee\u9898\u7b2c\u4e00\u4ef6\u4e8b\u7ffb\u5b83&#xff0c;\u6bd4\u778e\u731c\u9ad8\u6548\u592a\u591a\u3002\n<\/p>\n<h4>\n 4.2 NGINX\u8fd4\u56de404\u6216403<br \/>\n<\/h4>\n<p>\n 404\u7684\u60c5\u51b5\u8981\u770b\u662f\u54ea\u79cd&#xff1a;\u9996\u9875404&#xff0c;\u8fd8\u662f\u5185\u9875404&#xff0c;\u8fd8\u662f\u5237\u65b0\u4e4b\u540e404\u3002\n<\/p>\n<p>\n \u9996\u9875404\u901a\u5e38\u662fNginx\u7684<\/p>\n<p>  root<\/p>\n<p> \u8def\u5f84\u914d\u9519\u4e86&#xff0c;\u6bd4\u5982\u7f51\u7ad9\u6587\u4ef6\u5b9e\u9645\u653e\u5728<\/p>\n<p>  \/var\/www\/html<\/p>\n<p> &#xff0c;\u4f46\u914d\u7f6e\u91cc\u5199\u7684<\/p>\n<p>  \/var\/www\/html\/wordpress<\/p>\n<p> &#xff0c;\u90a3\u5f53\u7136\u627e\u4e0d\u5230\u3002\u6253\u5f00\u914d\u7f6e\u6587\u4ef6\u786e\u8ba4\u4e00\u4e0broot\u8def\u5f84\u548c\u5b9e\u9645\u76ee\u5f55\u4e00\u81f4\u3002\n<\/p>\n<p>\n \u5185\u9875404\u591a\u6570\u662f\u4f2a\u9759\u6001\u89c4\u5219\u6ca1\u751f\u6548\u3002WordPress\u5728Nginx\u4e0a\u7684\u4f2a\u9759\u6001\u5c31\u662f\u524d\u9762\u8bf4\u7684<\/p>\n<p>  try_files<\/p>\n<p> \u90a3\u4e00\u884c&#xff0c;\u5982\u679c\u8fd9\u884c\u7f3a\u5931\u6216\u5199\u9519&#xff0c;\u8bbf\u95ee\u4e00\u4e2a\u5206\u7c7b\u5730\u5740\u65f6Nginx\u4f1a\u76f4\u63a5\u627e<\/p>\n<p>  \/category\/xxx<\/p>\n<p> \u8fd9\u4e2a\u771f\u5b9e\u8def\u5f84&#xff0c;\u53d1\u73b0\u4e0d\u5b58\u5728\u5c31404\u4e86\u3002\n<\/p>\n<p>\n 403\u5219\u591a\u534a\u662f\u76ee\u5f55\u6743\u9650\u95ee\u9898&#xff0c;\u6bd4\u5982<\/p>\n<p>  \/var\/www\/html<\/p>\n<p> \u7684owner\u4e0d\u662f<\/p>\n<p>  www-data<\/p>\n<p> &#xff0c;\u6216\u8005\u6743\u9650\u8bbe\u7f6e\u4e3a<\/p>\n<p>  777<\/p>\n<p> \u540e\u53c8\u88ab\u7cfb\u7edf\u5b89\u5168\u6a21\u5757\u62e6\u622a\u3002\u6211\u5efa\u8bae\u6309\u6211\u524d\u9762\u8bbe\u7f6e\u7684<\/p>\n<p>  755<\/p>\n<p> \u52a0<\/p>\n<p>  www-data<\/p>\n<p> \u6743\u9650\u6765\u64cd\u4f5c\u3002\n<\/p>\n<h4>\n 4.3 \u6570\u636e\u5e93\u8fde\u63a5\u9519\u8bef\u600e\u4e48\u529e<br \/>\n<\/h4>\n<p>\n WordPress\u5b89\u88c5\u9875\u9762\u586b\u5b8c\u6570\u636e\u5e93\u4fe1\u606f\u540e\u63d0\u793a\u201c\u5efa\u7acb\u6570\u636e\u5e93\u8fde\u63a5\u65f6\u51fa\u9519\u201d&#xff0c;\u8fd9\u4e2a\u62a5\u9519\u662f\u4e2a\u7ecf\u5178\u95ee\u9898\u3002\n<\/p>\n<p>\n \u5148\u5728\u670d\u52a1\u5668\u4e0a\u786e\u8ba4MySQL\u670d\u52a1\u662f\u5426\u542f\u52a8&#xff1a;\n<\/p>\n<p>sudo systemctl status mysql<\/p>\n<p>\n \u7136\u540e\u6d4b\u8bd5\u6570\u636e\u5e93\u7528\u6237\u662f\u5426\u80fd\u6b63\u5e38\u767b\u5f55&#xff1a;\n<\/p>\n<p>mysql -u wp_user -p<\/p>\n<p>\n \u5982\u679c\u63d0\u793a<\/p>\n<p>  Access denied for user<\/p>\n<p> &#xff0c;\u53ef\u80fd\u662f\u5bc6\u7801\u9519\u8bef&#xff0c;\u4e5f\u53ef\u80fd\u662f\u7528\u6237\u6743\u9650\u6ca1\u751f\u6548&#xff0c;\u56de\u5230MySQL\u91cc\u6267\u884c<\/p>\n<p>  FLUSH PRIVILEGES;<\/p>\n<p> \u518d\u770b\u3002\u8fd8\u6709\u4e00\u79cd\u60c5\u51b5\u662fPHP-FPM\u7528\u7684socket\u8def\u5f84\u548cMySQL\u91cc\u7684socket\u8def\u5f84\u4e0d\u5339\u914d&#xff0c;\u6700\u5e38\u89c1\u4e8e\u4f60\u540c\u65f6\u88c5\u4e86MariaDB\u548cMySQL\u4e24\u4e2a\u6570\u636e\u5e93\u670d\u52a1&#xff0c;\u5bfc\u81f4\u51b2\u7a81\u3002\u6211\u5efa\u8bae\u53ea\u4fdd\u7559\u4e00\u4e2a\u6570\u636e\u5e93\u670d\u52a1&#xff0c;\u88c5MySQL\u5c31\u522b\u518d\u88c5MariaDB&#xff0c;\u88c5MariaDB\u4e5f\u540c\u7406\u3002\n<\/p>\n<h4>\n 4.4 \u540e\u53f0\u767b\u5f55\u8df3\u8f6c\u5230wp-admin\u65f6\u6b7b\u5faa\u73af<br \/>\n<\/h4>\n<p>\n \u8fd9\u4e2a\u5751\u6211\u78b0\u5230\u8fc7\u4e00\u6b21&#xff0c;\u8868\u73b0\u662f\u767b\u5f55\u540e\u4e00\u76f4\u8df3\u56de<\/p>\n<p>  wp-admin<\/p>\n<p> &#xff0c;\u4f46\u5c31\u662f\u8fdb\u4e0d\u53bb\u540e\u53f0\u3002\u67e5\u4e86\u534a\u5929\u624d\u53d1\u73b0\u539f\u56e0\u662f\u7ad9\u70b9URL\u914d\u7f6e\u548c\u5b9e\u9645\u8bbf\u95ee\u7684\u57df\u540d\u4e0d\u4e00\u81f4\u3002\n<\/p>\n<p>\n WordPress\u540e\u53f0\u7684<\/p>\n<p>  \u8bbe\u7f6e-&gt;\u5e38\u89c4<\/p>\n<p> \u91cc\u6709\u4e24\u4e2a\u5b57\u6bb5&#xff1a;WordPress\u5730\u5740\u548c\u7ad9\u70b9\u5730\u5740\u3002\u5982\u679c\u7ad9\u70b9\u5730\u5740\u5199\u7684\u662f<\/p>\n<p>  http:\/\/example.com<\/p>\n<p> &#xff0c;\u800c\u4f60\u53c8\u5f3a\u5236\u5f00\u542f\u4e86HTTPS\u8df3\u8f6c&#xff0c;\u90a3\u4e48\u767b\u5f55\u8bf7\u6c42\u5728\u8df3\u8f6c\u8fc7\u7a0b\u4e2d\u5c31\u4e22\u5931\u4e86\u3002\u89e3\u51b3\u529e\u6cd5\u662f\u76f4\u63a5\u5728\u6570\u636e\u5e93\u91cc\u6539\u8fd9\u4e24\u4e2a\u9009\u9879\u3002\u7528MySQL\u547d\u4ee4\u884c\u6267\u884c&#xff1a;\n<\/p>\n<p>UPDATE wp_options SET option_value&#061;&#039;https:\/\/example.com&#039; WHERE option_name&#061;&#039;siteurl&#039;;<br \/>\nUPDATE wp_options SET option_value&#061;&#039;https:\/\/example.com&#039; WHERE option_name&#061;&#039;home&#039;;<\/p>\n<p>\n \u66ff\u6362\u6210\u4f60\u81ea\u5df1\u7684\u57df\u540d\u540e\u5237\u65b0\u9875\u9762&#xff0c;\u518d\u91cd\u65b0\u767b\u5f55\u5c31\u6b63\u5e38\u4e86\u3002\n<\/p>\n<h4>\n 4.5 \u5e38\u89c1\u95ee\u9898\u901f\u67e5\u8868<br \/>\n<\/h4>\n<table>\n<tr>\n    \u73b0\u8c61<\/p>\n<p>    \u53ef\u80fd\u539f\u56e0<\/p>\n<p>    \u6392\u67e5\u601d\u8def<br \/>\n   <\/tr>\n<tbody>\n<tr>\n<td>\n    \u8bbf\u95ee\u8d85\u65f6\n   <\/td>\n<td>\n    \u5b89\u5168\u7ec4\/\u9632\u706b\u5899\u672a\u653e\u884c\u7aef\u53e3\n   <\/td>\n<td>\n    \u68c0\u67e5\u4e91\u63a7\u5236\u53f0\u548cUFW\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    \u9996\u9875404\n   <\/td>\n<td>\n    root\u8def\u5f84\u4e0d\u5bf9\n   <\/td>\n<td>\n    \u770bNginx config\u91ccroot\u6307\u5411\u771f\u5b9e\u76ee\u5f55\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    \u5185\u9875404\n   <\/td>\n<td>\n    \u4f2a\u9759\u6001\u914d\u7f6e\u7f3a\u5931\n   <\/td>\n<td>\n    \u8865<\/p>\n<p>     try_files<\/p>\n<p>    \u90a3\u884c\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    403 Forbidden\n   <\/td>\n<td>\n    \u76ee\u5f55\u6743\u9650\u4e0d\u5bf9\n   <\/td>\n<td>\n    \u6539\u4e3awww-data\u7528\u6237&#043;755\u6743\u9650\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    \u6570\u636e\u5e93\u8fde\u63a5\u5931\u8d25\n   <\/td>\n<td>\n    \u5bc6\u7801\u9519\u6216\u670d\u52a1\u672a\u5f00\u542f\n   <\/td>\n<td>\n    \u68c0\u67e5MySQL\u72b6\u6001\u548c\u7528\u6237\u6743\u9650\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    \u540e\u53f0\u8fdb\u4e0d\u53bb\n   <\/td>\n<td>\n    siteurl\/home\u914d\u7f6e\u9519\u8bef\n   <\/td>\n<td>\n    \u5728\u6570\u636e\u5e93\u91cc\u6539wp_options\u8868\n   <\/td>\n<\/tr>\n<tr>\n<td>\n    \u6837\u5f0f\u5168\u4e71\n   <\/td>\n<td>\n    HTTPS\u8bc1\u4e66\u65e0\u6548\u6216\u8d44\u6e90\u8def\u5f84\u9519\u8bef\n   <\/td>\n<td>\n    \u68c0\u67e5SSL\u914d\u7f6e\u548cWordPress\u5730\u5740\n   <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\n 5. \u65e5\u5e38\u7ef4\u62a4\u4e0e\u5b89\u5168\u52a0\u56fa\u7ecf\u9a8c<br \/>\n<\/h3>\n<h4>\n 5.1 \u5b9a\u65f6\u5907\u4efd&#xff1a;\u522b\u7b49\u6570\u636e\u4e22\u4e86\u624d\u540e\u6094<br \/>\n<\/h4>\n<p>\n \u4e2a\u4eba\u7f51\u7ad9\u7684\u6570\u636e\u91cf\u53ef\u80fd\u4e0d\u5927&#xff0c;\u4f46\u6bcf\u4e00\u7bc7\u6587\u7ae0\u90fd\u662f\u5fc3\u8840&#xff0c;\u6570\u636e\u5e93\u66f4\u662f\u7f51\u7ad9\u7684\u547d\u6839\u5b50\u3002\u6211\u89c1\u8fc7\u6709\u4eba\u5199\u4e86\u5f88\u4e45\u7684\u535a\u5ba2&#xff0c;\u7ed3\u679c\u670d\u52a1\u5668\u8bef\u64cd\u4f5c\u5bfc\u81f4\u6570\u636e\u5e93\u5168\u6ca1\u4e86&#xff0c;\u90a3\u79cd\u611f\u89c9\u771f\u7684\u5f88\u7cdf\u7cd5\u3002\n<\/p>\n<p>\n \u5907\u4efd\u5206\u4e24\u90e8\u5206&#xff1a;\u7f51\u7ad9\u6587\u4ef6\u548c\u6570\u636e\u5e93\u3002\n<\/p>\n<p>\n \u7f51\u7ad9\u6587\u4ef6\u7684\u5907\u4efd\u7528rsync\u589e\u91cf\u540c\u6b65\u5230\u522b\u7684\u76ee\u5f55\u5c31\u884c&#xff1a;\n<\/p>\n<p>sudo rsync -av &#8211;delete \/var\/www\/html\/ \/backup\/www\/<\/p>\n<p>\n \u6570\u636e\u5e93\u5907\u4efd\u7528mysqldump&#xff1a;\n<\/p>\n<p>mysqldump -u wp_user -p wp_database &gt; \/backup\/db_$(date &#043;%Y%m%d).sql<\/p>\n<p>\n \u60f3\u5b9a\u65f6\u6267\u884c\u7684\u8bdd&#xff0c;\u5199\u4e00\u4e2ashell\u811a\u672c&#xff0c;\u7136\u540e\u7528cron\u6bcf\u5929\u8dd1\u4e00\u6b21\u3002\u811a\u672c\u91cc\u52a0\u4e00\u53e5\u201c\u53ea\u4fdd\u7559\u6700\u8fd17\u5929\u7684\u5907\u4efd\u201d&#xff0c;\u907f\u514d\u78c1\u76d8\u88ab\u5907\u4efd\u6587\u4ef6\u585e\u6ee1&#xff1a;\n<\/p>\n<p>find \/backup -name &#034;*.sql&#034; -mtime &#043;7 -delete<\/p>\n<p>\n \u8fd9\u6837\u5373\u4f7f\u670d\u52a1\u5668\u786c\u76d8\u51fa\u95ee\u9898&#xff0c;\u4f60\u4e5f\u80fd\u4ece\u5907\u4efd\u91cc\u6062\u590d\u51fa\u6700\u65b0\u7248\u672c\u7684\u7f51\u7ad9\u3002\n<\/p>\n<h4>\n 5.2 \u51e0\u4e2a\u5b9e\u7528\u7684\u5b89\u5168\u52a0\u56fa\u52a8\u4f5c<br \/>\n<\/h4>\n<p>\n WordPress\u81ea\u8eab\u7684\u5b89\u5168\u52a0\u56fa\u662f\u4e2a\u5927\u8bdd\u9898&#xff0c;\u4f46\u6211\u5206\u4eab\u51e0\u6761\u5bf9\u4e2a\u4eba\u7f51\u7ad9\u6700\u6709\u4ef7\u503c\u7684&#xff1a;\n<\/p>\n<ul>\n<li>\n  \u540e\u53f0\u767b\u5f55\u5730\u5740\u7528\u63d2\u4ef6\u6539\u6210\u81ea\u5b9a\u4e49\u8def\u5f84&#xff0c;\u80fd\u6321\u4f4f\u7edd\u5927\u591a\u6570\u5b57\u5178\u653b\u51fb\u3002\u522b\u60f3\u7740\u53ea\u7528\u6539\u6587\u4ef6\u540d\u90a3\u79cd\u571f\u529e\u6cd5&#xff0c;\u76f4\u63a5\u88c5\u4e2aWPS Hide Login\u4e4b\u7c7b\u7684\u63d2\u4ef6&#xff0c;\u628a<\/p>\n<p>   \/wp-login.php<\/p>\n<p>  \u6539\u6210<\/p>\n<p>   \/mylogin2025<\/p>\n<p>  \u8fd9\u79cd\u53ea\u6709\u81ea\u5df1\u77e5\u9053\u7684\u8def\u5f84\u3002\n <\/li>\n<li>\n  \u542f\u7528\u767b\u5f55\u5931\u8d25\u9650\u5236&#xff0c;\u8fde\u7eed\u8f93\u9519\u5bc6\u7801\u51e0\u6b21\u540e\u9501\u5b9a\u4e00\u6bb5\u65f6\u95f4\u3002\u8fd9\u4e2a\u53ef\u4ee5\u88c5Limit Login Attempts Reloaded\u63d2\u4ef6&#xff0c;\u6216\u8005\u5e72\u8106\u5728Nginx\u5c42\u9762\u5bf9<\/p>\n<p>   wp-login.php<\/p>\n<p>  \u7684\u8bf7\u6c42\u505a\u9891\u7387\u9650\u5236\u3002\n <\/li>\n<li>\n  \u522b\u88c5\u4e00\u5806\u7528\u4e0d\u4e0a\u7684\u63d2\u4ef6\u3002\u6bcf\u591a\u4e00\u4e2a\u63d2\u4ef6\u5c31\u591a\u4e00\u4efd\u88ab\u653b\u51fb\u7684\u98ce\u9669\u9762&#xff0c;\u800c\u4e14\u5f88\u591a\u63d2\u4ef6\u4e4b\u95f4\u8fd8\u6709\u517c\u5bb9\u51b2\u7a81&#xff0c;\u6211\u7f51\u7ad9\u6162\u4e0b\u6765\u7684\u539f\u56e0\u4e00\u5927\u534a\u90fd\u662f\u63d2\u4ef6\u5806\u5f97\u592a\u591a\u3002\n <\/li>\n<li>\n  \u5b9a\u671f\u66f4\u65b0WordPress\u6838\u5fc3\u3001\u4e3b\u9898\u548c\u63d2\u4ef6\u3002\u66f4\u65b0\u524d\u4e00\u5b9a\u5148\u505a\u5907\u4efd&#xff0c;\u56e0\u4e3a\u6211\u9047\u5230\u8fc7\u4e3b\u9898\u66f4\u65b0\u540e\u6837\u5f0f\u5168\u4e71\u7684\u573a\u666f&#xff0c;\u5982\u679c\u662f\u7ebf\u4e0a\u73af\u5883&#xff0c;\u90a3\u53ef\u5c31\u53ea\u80fd\u9760\u5907\u4efd\u56de\u6eda\u4e86\u3002\n <\/li>\n<\/ul>\n<h4>\n 5.3 \u6027\u80fd\u4f18\u5316&#xff1a;\u8ba9\u4e2a\u4eba\u7f51\u7ad9\u4e5f\u80fd\u6709\u4e1d\u6ed1\u4f53\u9a8c<br \/>\n<\/h4>\n<p>\n \u4e2a\u4eba\u7f51\u7ad9\u8bbf\u95ee\u91cf\u4e00\u822c\u4e0d\u5927&#xff0c;\u4f46\u54cd\u5e94\u901f\u5ea6\u4ecd\u7136\u80fd\u7ed9\u4eba\u975e\u5e38\u597d\u7684\u5370\u8c61\u3002\u6211\u505a\u4e86\u4e09\u4e2a\u4f18\u5316\u52a8\u4f5c&#xff0c;\u6548\u679c\u660e\u663e&#xff1a;\n<\/p>\n<p>\n \u5f00\u542fPHP OPcache\u3002\u4fee\u6539<\/p>\n<p>  \/etc\/php\/8.1\/fpm\/php.ini<\/p>\n<p> &#xff1a;\n<\/p>\n<p>opcache.enable&#061;1<br \/>\nopcache.memory_consumption&#061;128<br \/>\nopcache.interned_strings_buffer&#061;8<br \/>\nopcache.max_accelerated_files&#061;10000<br \/>\nopcache.revalidate_freq&#061;60<\/p>\n<p>\n \u8fd9\u91cc\u7684<\/p>\n<p>  revalidate_freq&#061;60<\/p>\n<p> \u8868\u793aPHP\u6587\u4ef6\u4fee\u6539\u540e60\u79d2\u5185&#xff0c;\u670d\u52a1\u5668\u4f1a\u76f4\u63a5\u7528\u5185\u5b58\u91cc\u7684\u7f13\u5b58&#xff0c;\u4e0d\u9700\u8981\u6bcf\u6b21\u90fd\u91cd\u65b0\u7f16\u8bd1\u3002\u7f51\u7ad9\u529f\u80fd\u4e0d\u53d8\u65f6\u6027\u80fd\u63d0\u5347\u5f88\u5927\u3002\n<\/p>\n<p>\n \u7ed9\u9759\u6001\u8d44\u6e90\u52a0\u6d4f\u89c8\u5668\u7f13\u5b58\u3002Nginx\u91cc\u6211\u5df2\u7ecf\u5199\u4e86\u9759\u6001\u8d44\u6e90\u90a3\u884c<\/p>\n<p>  expires 30d<\/p>\n<p> &#xff0c;\u8fd9\u6837\u7528\u6237\u6d4f\u89c8\u8fc7\u4e00\u6b21\u7f51\u7ad9\u540e&#xff0c;\u56fe\u7247\u548cCSS\u3001JS\u6587\u4ef6\u5728\u6d4f\u89c8\u5668\u91cc\u4f1a\u7f13\u5b5830\u5929&#xff0c;\u518d\u6b21\u8bbf\u95ee\u65f6\u901f\u5ea6\u4f1a\u5feb\u4e0d\u5c11\u3002\n<\/p>\n<p>\n Nginx\u542f\u7528Gzip\u538b\u7f29\u9759\u6001\u6587\u672c&#xff1a;\n<\/p>\n<p>gzip on;<br \/>\ngzip_vary on;<br \/>\ngzip_min_length 1024;<br \/>\ngzip_types text\/plain text\/css text\/xml text\/javascript application\/javascript application\/xml application\/json;<\/p>\n<p>\n \u7f51\u9875\u91cc\u5927\u91cf\u6587\u672c\u7ecf\u8fc7\u538b\u7f29\u540e\u518d\u4f20\u8f93&#xff0c;\u4f53\u79ef\u80fd\u5c0f\u4e00\u534a\u4ee5\u4e0a&#xff0c;\u5bf95M\u5c0f\u5e26\u5bbd\u7684\u670d\u52a1\u5668\u975e\u5e38\u53cb\u597d\u3002\n<\/p>\n<h3>\n 6. \u7ed3\u8bed&#xff1a;\u914d\u7f6e\u5b8c\u6210\u53ea\u662f\u5f00\u59cb<br \/>\n<\/h3>\n<p>\n \u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u8fd9\u4e2a\u9879\u76ee&#xff0c;\u8868\u9762\u4e0a\u662f\u7528\u4e00\u7cfb\u5217\u547d\u4ee4\u548c\u6587\u4ef6\u628a\u7f51\u7ad9\u8dd1\u8d77\u6765&#xff0c;\u5b9e\u9645\u4e0a\u662f\u4e00\u6b21\u7cfb\u7edf\u601d\u7ef4\u548c\u63d0\u9519\u7b56\u7565\u7684\u5b8c\u6574\u8bad\u7ec3\u3002\u4ece\u57df\u540d\u89e3\u6790\u3001Nginx\u914d\u7f6e\u3001\u6570\u636e\u5e93\u6743\u9650\u3001SSL\u8bc1\u4e66\u5230\u4f2a\u9759\u6001\u89c4\u5219&#xff0c;\u6bcf\u4e00\u73af\u90fd\u9700\u8981\u4f60\u7406\u89e3\u80cc\u540e\u7684\u201c\u4e3a\u4ec0\u4e48\u201d&#xff0c;\u800c\u4e0d\u662f\u5355\u7eaf\u590d\u5236\u7c98\u8d34\u547d\u4ee4\u3002\n<\/p>\n<p>\n \u6211\u59cb\u7ec8\u89c9\u5f97&#xff0c;\u4e2a\u4eba\u7f51\u7ad9\u548c\u5927\u578b\u7ad9\u70b9\u6700\u5927\u7684\u533a\u522b\u5728\u4e8e\u201c\u53ef\u63a7\u6027\u201d\u3002\u5b83\u4e0d\u9700\u8981\u625b\u4f4f\u51e0\u5341\u4e07\u5e76\u53d1&#xff0c;\u4e5f\u4e0d\u9700\u8981\u590d\u6742\u7684\u5fae\u670d\u52a1\u67b6\u6784&#xff0c;\u4f46\u4f60\u9700\u8981\u6e05\u695a\u5730\u77e5\u9053\u5b83\u6bcf\u4e00\u90e8\u5206\u662f\u600e\u4e48\u5de5\u4f5c\u7684\u3002\u8fd9\u6837\u4e07\u4e00\u54ea\u5929\u51fa\u95ee\u9898\u4e86&#xff0c;\u4f60\u80fd\u7b2c\u4e00\u65f6\u95f4\u5b9a\u4f4d\u5230\u95ee\u9898\u6240\u5728&#xff0c;\u800c\u4e0d\u662f\u6253\u4e2a\u7535\u8bdd\u95ee\u5ba2\u670d\u6216\u8005\u6ee1\u4e16\u754c\u627e\u6559\u7a0b\u3002\n<\/p>\n<p>\n \u5982\u679c\u4f60\u5df2\u7ecf\u6309\u8fd9\u5957\u6d41\u7a0b\u628a\u4f60\u7684\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u8d77\u6765\u4e86&#xff0c;\u6211\u5efa\u8bae\u4e0b\u4e00\u9636\u6bb5\u53ef\u4ee5\u8bd5\u7740\u5728\u7f51\u7ad9\u4e0a\u8bb0\u5f55\u81ea\u5df1\u7684\u914d\u7f6e\u8fc7\u7a0b\u3002\u5199\u4e0b\u6765\u6700\u521d\u4f1a\u89c9\u5f97\u5f88\u9ebb\u70e6&#xff0c;\u4f46\u575a\u6301\u4e00\u6bb5\u65f6\u95f4\u4f60\u4f1a\u53d1\u73b0&#xff0c;\u8fd9\u4e0d\u4ec5\u662f\u7ed9\u8bbf\u95ee\u8005\u770b\u7684&#xff0c;\u66f4\u662f\u7ed9\u4f60\u81ea\u5df1\u7684\u4e00\u4efd\u6781\u597d\u7684\u6280\u672f\u7b14\u8bb0\u3002\u5f88\u591a\u7ec6\u8282\u4e45\u4e86\u771f\u7684\u4f1a\u5fd8&#xff0c;\u7ffb\u81ea\u5df1\u4e4b\u524d\u5199\u4e0b\u7684\u914d\u7f6e\u7b14\u8bb0&#xff0c;\u6bd4\u7ffb\u4efb\u4f55\u641c\u7d22\u5f15\u64ce\u90fd\u597d\u4f7f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u5185\u5bb9\u6574\u4f53\u8bbe\u8ba1\u4e0e\u601d\u8def\u62c6\u89e31.1 \u5148\u8bf4\u6e05\u695a&#xff1a;\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u5230\u5e95\u5728\u914d\u4ec0\u4e48\u6211\u63a5\u89e6\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u8fd9\u4e2a\u4e8b\u4e5f\u6709\u597d\u4e9b\u5e74\u4e86&#xff0c;\u6700\u65e9\u662f\u4e3a\u4e86\u653e\u81ea\u5df1\u7684\u7b80\u5386\u548c\u4f5c\u54c1\u96c6&#xff0c;\u540e\u6765\u6162\u6162\u6298\u817e\u6210\u6280\u672f\u535a\u5ba2\u3001\u6444\u5f71\u5c55\u793a\u7ad9\u3001\u751a\u81f3\u5e2e\u670b\u53cb\u642d\u4e86\u5c0f\u578b\u7535\u5546\u9875\u3002\u5f88\u591a\u521a\u5165\u95e8\u7684\u670b\u53cb\u4ee5\u4e3a\u201c\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u201d\u5c31\u662f\u628a\u4e00\u4e2a\u5b89\u88c5\u5305\u4f20\u4e0a\u53bb&#xff0c;\u70b9\u51e0\u4e0b\u4e0b\u4e00\u6b65\u5c31\u5b8c\u4e8b&#xff0c;\u5b9e\u9645\u4e0a\u771f\u6b63\u642d\u5efa\u4e00\u4e2a\u80fd\u7a33\u5b9a\u8bbf\u95ee\u3001\u4e0d\u62a5\u9519\u3001\u80fd\u81ea\u5df1\u63a7\u5236\u7684\u4e2a\u4eba\u7f51\u7ad9&#xff0c;\u4f60\u81f3\u5c11\u8981\u628a\u56db\u5c42\u4e1c\u897f\u914d\u901a&#xff1a;\u57df\u540d\u89e3\u6790\u3001\u670d\u52a1\u5668<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11912,117,1301],"topic":[],"class_list":["post-104740","post","type-post","status-publish","format-standard","hentry","category-server","tag-11912","tag-nginx","tag-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u624b\u52a8\u642d\u5efa\u4e2a\u4eba\u7f51\u7ad9\uff1a\u57df\u540d\u3001\u670d\u52a1\u5668\u3001Nginx\u4e0eWordPress\u5168\u914d\u7f6e\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/104740.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u624b\u52a8\u642d\u5efa\u4e2a\u4eba\u7f51\u7ad9\uff1a\u57df\u540d\u3001\u670d\u52a1\u5668\u3001Nginx\u4e0eWordPress\u5168\u914d\u7f6e\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"1. \u5185\u5bb9\u6574\u4f53\u8bbe\u8ba1\u4e0e\u601d\u8def\u62c6\u89e31.1 \u5148\u8bf4\u6e05\u695a&#xff1a;\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u5230\u5e95\u5728\u914d\u4ec0\u4e48\u6211\u63a5\u89e6\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u8fd9\u4e2a\u4e8b\u4e5f\u6709\u597d\u4e9b\u5e74\u4e86&#xff0c;\u6700\u65e9\u662f\u4e3a\u4e86\u653e\u81ea\u5df1\u7684\u7b80\u5386\u548c\u4f5c\u54c1\u96c6&#xff0c;\u540e\u6765\u6162\u6162\u6298\u817e\u6210\u6280\u672f\u535a\u5ba2\u3001\u6444\u5f71\u5c55\u793a\u7ad9\u3001\u751a\u81f3\u5e2e\u670b\u53cb\u642d\u4e86\u5c0f\u578b\u7535\u5546\u9875\u3002\u5f88\u591a\u521a\u5165\u95e8\u7684\u670b\u53cb\u4ee5\u4e3a\u201c\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u201d\u5c31\u662f\u628a\u4e00\u4e2a\u5b89\u88c5\u5305\u4f20\u4e0a\u53bb&#xff0c;\u70b9\u51e0\u4e0b\u4e0b\u4e00\u6b65\u5c31\u5b8c\u4e8b&#xff0c;\u5b9e\u9645\u4e0a\u771f\u6b63\u642d\u5efa\u4e00\u4e2a\u80fd\u7a33\u5b9a\u8bbf\u95ee\u3001\u4e0d\u62a5\u9519\u3001\u80fd\u81ea\u5df1\u63a7\u5236\u7684\u4e2a\u4eba\u7f51\u7ad9&#xff0c;\u4f60\u81f3\u5c11\u8981\u628a\u56db\u5c42\u4e1c\u897f\u914d\u901a&#xff1a;\u57df\u540d\u89e3\u6790\u3001\u670d\u52a1\u5668\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/104740.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-12T23:18:01+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/104740.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/104740.html\",\"name\":\"\u624b\u52a8\u642d\u5efa\u4e2a\u4eba\u7f51\u7ad9\uff1a\u57df\u540d\u3001\u670d\u52a1\u5668\u3001Nginx\u4e0eWordPress\u5168\u914d\u7f6e\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-12T23:18:01+00:00\",\"dateModified\":\"2026-09-12T23:18:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/104740.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/104740.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/104740.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u624b\u52a8\u642d\u5efa\u4e2a\u4eba\u7f51\u7ad9\uff1a\u57df\u540d\u3001\u670d\u52a1\u5668\u3001Nginx\u4e0eWordPress\u5168\u914d\u7f6e\u6307\u5357\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u624b\u52a8\u642d\u5efa\u4e2a\u4eba\u7f51\u7ad9\uff1a\u57df\u540d\u3001\u670d\u52a1\u5668\u3001Nginx\u4e0eWordPress\u5168\u914d\u7f6e\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/104740.html","og_locale":"zh_CN","og_type":"article","og_title":"\u624b\u52a8\u642d\u5efa\u4e2a\u4eba\u7f51\u7ad9\uff1a\u57df\u540d\u3001\u670d\u52a1\u5668\u3001Nginx\u4e0eWordPress\u5168\u914d\u7f6e\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"1. \u5185\u5bb9\u6574\u4f53\u8bbe\u8ba1\u4e0e\u601d\u8def\u62c6\u89e31.1 \u5148\u8bf4\u6e05\u695a&#xff1a;\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u5230\u5e95\u5728\u914d\u4ec0\u4e48\u6211\u63a5\u89e6\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u8fd9\u4e2a\u4e8b\u4e5f\u6709\u597d\u4e9b\u5e74\u4e86&#xff0c;\u6700\u65e9\u662f\u4e3a\u4e86\u653e\u81ea\u5df1\u7684\u7b80\u5386\u548c\u4f5c\u54c1\u96c6&#xff0c;\u540e\u6765\u6162\u6162\u6298\u817e\u6210\u6280\u672f\u535a\u5ba2\u3001\u6444\u5f71\u5c55\u793a\u7ad9\u3001\u751a\u81f3\u5e2e\u670b\u53cb\u642d\u4e86\u5c0f\u578b\u7535\u5546\u9875\u3002\u5f88\u591a\u521a\u5165\u95e8\u7684\u670b\u53cb\u4ee5\u4e3a\u201c\u4e2a\u4eba\u7f51\u7ad9\u914d\u7f6e\u201d\u5c31\u662f\u628a\u4e00\u4e2a\u5b89\u88c5\u5305\u4f20\u4e0a\u53bb&#xff0c;\u70b9\u51e0\u4e0b\u4e0b\u4e00\u6b65\u5c31\u5b8c\u4e8b&#xff0c;\u5b9e\u9645\u4e0a\u771f\u6b63\u642d\u5efa\u4e00\u4e2a\u80fd\u7a33\u5b9a\u8bbf\u95ee\u3001\u4e0d\u62a5\u9519\u3001\u80fd\u81ea\u5df1\u63a7\u5236\u7684\u4e2a\u4eba\u7f51\u7ad9&#xff0c;\u4f60\u81f3\u5c11\u8981\u628a\u56db\u5c42\u4e1c\u897f\u914d\u901a&#xff1a;\u57df\u540d\u89e3\u6790\u3001\u670d\u52a1\u5668","og_url":"https:\/\/www.wsisp.com\/helps\/104740.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-12T23:18:01+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/104740.html","url":"https:\/\/www.wsisp.com\/helps\/104740.html","name":"\u624b\u52a8\u642d\u5efa\u4e2a\u4eba\u7f51\u7ad9\uff1a\u57df\u540d\u3001\u670d\u52a1\u5668\u3001Nginx\u4e0eWordPress\u5168\u914d\u7f6e\u6307\u5357 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-12T23:18:01+00:00","dateModified":"2026-09-12T23:18:01+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/104740.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/104740.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/104740.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u624b\u52a8\u642d\u5efa\u4e2a\u4eba\u7f51\u7ad9\uff1a\u57df\u540d\u3001\u670d\u52a1\u5668\u3001Nginx\u4e0eWordPress\u5168\u914d\u7f6e\u6307\u5357"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/104740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=104740"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/104740\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=104740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=104740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=104740"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=104740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}