{"id":27066,"date":"2020-02-03T20:14:03","date_gmt":"2020-02-03T12:14:03","guid":{"rendered":"http:\/\/4563.org\/?p=27066"},"modified":"2020-02-03T20:14:03","modified_gmt":"2020-02-03T12:14:03","slug":"%e3%80%90%e5%85%8d%e6%8f%92%e4%bb%b6%e3%80%91%e5%bd%93%e5%b9%b4%e6%8b%af%e6%95%91%e6%88%91%e5%8d%9a%e5%ae%a2%e7%9a%84wordpress%e5%85%a8%e7%ab%99%e7%9c%9f%e9%9d%99%e6%80%81%e5%8c%96%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=27066","title":{"rendered":"\u3010\u514d\u63d2\u4ef6\u3011\u5f53\u5e74\u62ef\u6551\u6211\u535a\u5ba2\u7684WordPress\u5168\u7ad9\u771f\u9759\u6001\u5316\u65b9\u6848"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>CloudRaft<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 01:21:54\t<\/p>\n<h3>\u3010\u514d\u63d2\u4ef6\u3011\u5f53\u5e74\u62ef\u6551\u6211\u535a\u5ba2\u7684WordPress\u5168\u7ad9\u771f\u9759\u6001\u5316\u65b9\u6848<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 CloudRaft \u4e8e 2019-12-28 01:24 \u7f16\u8f91 <\/p>\n<p> \u6211\u7684\u535a\u5ba2\u662f\u57282012\u5e74\u5efa\u7acb\u7684\uff0c\u4e00\u76f4\u653e\u5728\u963f\u91cc\u4e91\uff0c\u5e73\u65e5\u4f5c\u4e3a\u7b14\u8bb0\u548c\u6298\u817e\u65e5\u5fd7\u7528\u3002\u51e0\u5e74\u4e0b\u6765\u5185\u5bb9\u4e5f\u66f4\u65b0\u4e86\u4e0d\u5c11\uff0c\u867d\u8bf4\u4e71\u4e03\u516b\u7cdf\uff0c\u4f46\u4e5f\u90fd\u662f\u81ea\u5df1\u5b9d\u8d35\u7684\u7ecf\u5386\u3002<\/p>\n<p>  17\u5e74\u7684\u65f6\u5019\uff0c\u5fd9\u4e8e\u5b66\u4e1a\u5b8c\u5168\u65e0\u5fc3\u987e\u53ca\u670d\u52a1\u5668\u7684\u7ef4\u62a4\uff0c\u5fd8\u8bb0\u4e86\u7ed9\u6570\u636e\u5e93\u7eed\u8d39\uff0c\u5bfc\u81f4\u6240\u6709\u6570\u636e\u5168\u90e8\u4e22\u5931\u3002\u597d\u5728\u5bf9\u5168\u7ad9\u505a\u4e86\u9759\u6001\u5316\u5e76\u4e14\u5b58\u5728\u4e86\u4e03\u725b\u624d\u5f97\u4ee5\u4fdd\u7559\u5168\u7ad9\u7684\u5185\u5bb9\u3002<\/p>\n<p>  \u65b9\u6848\uff1a<br \/>  1. \u5168\u7ad9\u6587\u7ae0\u5217\u8868\u4f2a\u9759\u6001\u2014\u2014\u56fa\u5b9a\u94fe\u63a5\u4ee5.html\u7ed3\u5c3e\uff0c\u5982\uff1a\/article\/%post_id%.html<br \/>  2.1 Nginx\u53cd\u4ee3+\u4fdd\u5b58\u7f13\u5b58\uff0c\u8fd9\u4e2a\u6ca1\u5565\u597d\u8bf4\u7684\u5b9d\u5854\u5c31\u6709\u8fd9\u529f\u80fd\u3002<br \/>  \u53cd\u4ee3\u8bbe\u7f6e\u597d\u4e4b\u540e\u9700\u8981\u81ea\u5df1\u5148\u904d\u5386\u4e00\u904dsitemap\uff0c\u4ee3\u7801\u53c2\u80032.3\u3002<br \/>  2.2 \u4e03\u725b\u7684\u955c\u50cf\u5b58\u50a8\u529f\u80fd\uff08AFF\u94fe\u63a5 https:\/\/portal.qiniu.com\/signup?code=1h94f11kxvioi\uff09<br \/>  https:\/\/iuimg.com\/images\/2019\/12\/27\/f81P.png<br \/>  \u53ef\u4ee5\u76f4\u63a5\u9884\u53d6\u6587\u4ef6\u548c\u76ee\u5f55\u6bd4\u8f83\u65b9\u4fbf\u3002<br \/>  2.3 shell\u811a\u672c\u6279\u91cf\u4fdd\u5b58\u7f51\u9875\u6587\u4ef6\uff1a<br \/>  \u9996\u5148\u901a\u8fc7sitemap\u63d0\u53d6\u51fa\u6240\u6709\u6587\u7ae0\u7684\u94fe\u63a5\uff0c\u5230pageurl.txt\uff0c\u7136\u540esh download.sh pageurl.txt\uff0c\u6700\u540e\u628awp-content\u4e0b\u7684\u4e1c\u897f\u5168\u90e8\u4e5f\u4e0b\u8f7d\u4e0b\u6765<\/p>\n<p>  while read line<br \/>  do<br \/>  {<br \/>  &nbsp; &nbsp; if [ -n &quot;$line&quot; ]<br \/>  &nbsp; &nbsp; then<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;cd \/www\/wwwroot<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;url=$(echo &quot;$line&quot; | tr -d &#8216;r&#8217;)<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;pagedir=$(echo $url | sed -r &#8216;s\/https:\/\/\/\/g&#8217;)<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;pagename=$(echo ${pagedir##*\/})<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;pagepath=$(echo ${pagedir%\/*})<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;mkdir -p $pagepath<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;cd $pagepath<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;wget -O $pagename `echo $url`<br \/>  &nbsp; &nbsp; fi<br \/>  }<br \/>  done &lt; $1<br \/>  exit 0<br \/>  *\u4ee5\u4e0a\u4e09\u9009\u4e00\uff0c\u5f53\u5e74\u7528\u7684\u662f\u4e03\u725b<br \/>  3. \u627e\u4e2a\u80fd\u6258\u7ba1html\u7684\u5730\u65b9\u653e\u9759\u6001\u6587\u4ef6\u5373\u53ef\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Cee<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 16:27:30\t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 Cee \u4e8e 2019-12-28 16:32 \u7f16\u8f91 <\/p>\n<p> 1. \u5168\u7ad9\u6587\u7ae0\u5217\u8868\u4f2a\u9759\u6001\u2014\u2014\u56fa\u5b9a\u94fe\u63a5\u4ee5.html\u7ed3\u5c3e\uff0c\u5982\uff1a\/article\/%post_id%.html<br \/>  \u9996\u5148\u8fd9\u4e00\u6761\u5c31\u6ca1\u7528\uff0c\u5c3d\u7ba1\u4f60\u540e\u7f00\u52a0\u4e0a .html\uff0c\u770b\u8d77\u6765\u50cf\u662f\u4e2a html\uff0c\u7136\u800c\u5b83\u4f9d\u7136\u662f\u4e2a\u76ee\u5f55\u5f62\u5f0f\u3002<br \/>  \u6709 .html \u4e0d\u4ee3\u8868\u662f\u9759\u6001\u9875\u9762\uff0c\u76f8\u53cd\u6ca1\u6709 .html \u7684\u4e5f\u6709\u53ef\u80fd\u662f\u7eaf\u9759\u6001\u9875\u9762\u3002<\/p>\n<p>  2.1 Nginx\u53cd\u4ee3+\u4fdd\u5b58\u7f13\u5b58\uff0c\u8fd9\u4e2a\u6ca1\u5565\u597d\u8bf4\u7684\u5b9d\u5854\u5c31\u6709\u8fd9\u529f\u80fd\u3002<br \/>  \u5c31\u7b97\u4e0d\u7528\u7f13\u5b58\u63d2\u4ef6\u76f4\u63a5\u672c\u673a\u670d\u52a1\u5668\u7f13\u5b58\u4e5f\u80fd\u8fbe\u5230\u7f13\u5b58\u6548\u679c\uff0c\u800c Nginx \u53cd\u4ee3\u53c8\u662f\u56fe\u4ec0\u4e48\u5440\u3002<\/p>\n<p>  2.2 \u4e03\u725b\u7684\u955c\u50cf\u5b58\u50a8\u529f\u80fd<br \/>  \u8fd9\u6761\u5408\u7406\uff0c\u52a8\u9759\u5206\u79bb\uff0c\u65e2\u7136\u9759\u6001\u6587\u4ef6\u5168\u90e8\u7528 CDN \u4fdd\u5b58\u4e86\uff0c\u90a3\u670d\u52a1\u5668\u4e0a\u53ea\u5269\u52a8\u6001\uff0c\u4e3a\u4f55\u8fd8\u8981 Nginx \u53cd\u4ee3\u5462\uff1f<\/p>\n<p>  \u8865\u5145\u4e00\u70b9\uff0c\u6211\u89c9\u5f97 WordPress \u5feb\u4e0d\u5feb\uff0c\u4e00\u4e2a\u662f\u7b2c\u4e09\u65b9\u8d44\u6e90\u7684\u591a\u5c11\u95ee\u9898\uff0c\u4e00\u4e2a\u662f\u4e3b\u9898\u672c\u8eab\u7684\u4ee3\u7801\u5199\u7684\u597d\u4e0d\u597d\uff0c\u5982\u679c\u4f60\u7528\u7684\u4e3b\u9898\u4ee3\u7801\u6bd4\u8f83\u7cbe\u7b80\u7684\u8bdd\uff0c\u5176\u4ed6\u64cd\u4f5c\u4e0d\u7528\u505a\u6211\u89c9\u5f97\u4e5f\u4e0d\u4f1a\u6162\uff0c\u4e2a\u4eba\u89c9\u5f97\u7f13\u5b58\u548c\u52a8\u9759\u5206\u79bb\u662f\u5fc5\u987b\uff0c\u5176\u4ed6\u90fd\u53ef\u4ee5\u968f\u610f\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>xian<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 01:23:36\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6536\u85cf\uff0c\u660e\u5929\u8bd5\u8bd5\u3002\u8c22\u8c22\u5206\u4eab..\u6211\u4f5b\u7cfb\u535a\u5ba2\u6253\u5f0010s\u4e5f\u8be5\u6298\u817e\u6298\u817e\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>dengdeng<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 01:33:02\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6211\u662f\u5957\u4e00\u4e2acf\uff0c\u5b8c\u4e8b:lol<\/p>\n<p>  \u53ef\u4ee5\u6d4b\u8bd5\u4e0b\u901f\u5ea6\u7b7e\u540d \u7b2c\u4e09\u4e2a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>guonning2000<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 08:01:54\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u53ef\u4ee5\u8bd5\u8bd5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hyllgf<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 08:16:10\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0d\u9519\u554a\uff0c\u5389\u5bb3\u4e86\u6211\u7684\u54e5\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>chable<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 10:14:01\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6280\u672f\u8fbe\u4eba\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5355\u9614<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 11:30:57\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4f60\u535a\u5ba2\u90a3\u4e2a \u6253\u5f00\u8bd5\u8bd5\u901f\u5ea6\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>nicestill<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 12:46:54\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5f04\u592a\u591a\u7d2f\u554a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>jpfree<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 12:54:57\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9759\u6001\u5316\u6709\u4ec0\u4e48\u597d\u5904\uff1f\u6bd4\u5982\u4e8c\u7ef4\u7801\u4e0d\u662f\u5931\u6548\u4e86\u5417\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>CloudRaft<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 16:17:15\t<\/p>\n<h3><\/h3>\n<p>  \t\tnicestill \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2019-12-28 12:46<br \/>  \u5f04\u592a\u591a\u7d2f\u554a<\/p>\n<p> \u90fd\u662f\u81ea\u52a8\u5316\u7684\uff0c\u6bcf\u6b21\u66f4\u65b0\u5b8c\u4e4b\u540e\u8dd1\u4e00\u4e0b\u5c31\u884c\u4e86\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>CloudRaft \u5927\u4f6c\u6709\u8bdd\u8bf4 :&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/27066"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27066"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/27066\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27066"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}