{"id":208,"date":"2016-04-14T20:23:09","date_gmt":"2016-04-14T12:23:09","guid":{"rendered":"http:\/\/192.168.0.155\/?p=208"},"modified":"2016-04-14T20:31:52","modified_gmt":"2016-04-14T12:31:52","slug":"%e8%bf%99%e4%ba%9b%e5%a4%a9%e7%9a%84%e4%b8%80%e5%a4%a9%e6%a0%91%e8%8e%93%e6%b4%be%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%ef%bc%88%e4%ba%8c%ef%bc%89-%e5%ae%9e%e6%88%98wordpresskodexplorer","status":"publish","type":"post","link":"https:\/\/www.bluemountain.pw\/?p=208","title":{"rendered":"[\u8fd9\u4e9b\u5929\u7684\u4e00\u5929]\u6811\u8393\u6d3e\u5b66\u4e60\u7b14\u8bb0\uff08\u4e8c\uff09-\u5b9e\u6218wordpress&#038;kodexplorer"},"content":{"rendered":"<p>\u5165\u624braspberrypi3\u540e\u7684\u7b2c\u4e00\u4e2a\u9636\u6bb5\u6027\u7684\u76ee\u6807\u5c31\u662fwordpress&amp;kodexplorer<\/p>\n<p>\u7b2c\u4e00\u9879\u4efb\u52a1\u662f\u88c5\u7cfb\u7edf\u53ca\u5f00\u673a\u3002\u67092\u79cd\u65b9\u6cd5\uff0c\u4e00\u79cd\u662f\u7528noobs\u5f15\u5bfc\u5b89\u88c5\u4e00\u79cd\u662f\u70e7\u5f55tf\u5361\u3002<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;-\u83b7\u53d6\u7a7atf\u5361&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>\u4e24\u79cd\u65b9\u6cd5\u7684\u524d\u63d0\u662f\u6709\u4e00\u5f20\u7a7a\u7684fat32\u6587\u4ef6\u7cfb\u7edf\u7684tf\u5361\uff0c\u5bb9\u91cf\u81f3\u5c11\u5f974g\u3002<\/p>\n<p>\u9700\u8981\u7528\u52302\u4e2a\u5de5\u5177\uff0cPanasonic_SDFormatter\u548cguiformat\u3002<\/p>\n<p>\u5b9e\u6d4b16g\u53ca\u4ee5\u4e0b\u7684tf\u5361\u4f7f\u7528Panasonic_SDFormatter\u683c\u5f0f\u5316\u5c31\u53ef\u4ee5\u5f97\u5230fat32\u7cfb\u7edf\u300232g\u7684\u5c0f\u72fc\u6ca1\u8bd5\uff0c64g\u7684tf\u5361Panasonic_SDFormatter\u683c\u5f0f\u5316\u540e\u662fexfat4\u7684\u7cfb\u7edf\uff0c\u4e0d\u7ba1\u3002\u5fc5\u987b\u7528guiformat\u6765\u683c\u5f0f\u5316\uff0c\u53ef\u4ee5\u5f97\u5230fat32\u7cfb\u7edf\u3002\u53e6\u5916\u5c0f\u72fc\u7684Kingston\u768464g\u5361\u597d\u50cf\u4e0d\u652f\u6301\u3002\u597d\u50cf\u8bf4\u5fc5\u987b\u7528\u8bfb\u5361\u5668\uff0c\u7b14\u8bb0\u672c\u7684\u5361\u69fd\u4e0d\u7ba1\u3002<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;\u5b89\u88c5\u7cfb\u7edf&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>\u8bbf\u95eehttps:\/\/www.raspberrypi.org\/\uff0c\u5728downloads\u680f\u76ee\u91cc\u53ef\u4ee5\u770b\u5230noobs\u7684\u4e0b\u8f7d\u548cRaspbian\u539f\u7248\u955c\u50cf\u4e0b\u8f7d\u3002\u8fd9\u662f\u4e24\u79cd\u5b89\u88c5\u7cfb\u7edf\u7684\u65b9\u5f0f\uff0c\u6b8a\u9014\u540c\u5f52\uff0c\u81ea\u5df1\u9009\u5176\u4e2d\u4e00\u79cd\u5373\u53ef\u3002<\/p>\n<p>?<\/p>\n<p>noobs\u7684\u4f7f\u7528\u65b9\u6cd5\u662f\u4e0b\u8f7d\u540e\u89e3\u538b\u7f29\u5168\u90e8\u62f7\u8d1d\u5230\u683c\u5f0f\u5316\u4e3aFAT32\u683c\u5f0f\u7684tf\u5361\u4e0a\uff0c\u63d2\u5165raspberrypi3\uff0c\u63a5\u4e0a\u663e\u793a\u3001\u65e0\u7ebf\u952e\u9f20\uff0c\u63a5\u901a\u7535\u6e90\u5373\u53ef\u6309\u6307\u5bfc\u64cd\u4f5c\u3002<\/p>\n<p>\u70e7\u5f55TF\u5361\u662f\u4e0b\u8f7dRaspbian\u540e\u89e3\u538b\u7f29\uff0c\u5f97\u5230\u4e00\u4e2aimg\u6587\u4ef6\uff0c\u7528Win32 Disk Imager\u8fd9\u4e2a\u5de5\u5177\u8f7d\u5165\u89e3\u538b\u7f29\u51fa\u6765\u7684img\u6587\u4ef6\uff0cdevice\u9009\u62e9tf\u5361\u7684\u76d8\u7b26\u3002\u6ce8\u610f\u4e0d\u8981\u9009\u9519\uff0c\u4e0d\u7136\u64cd\u4f5c\u5b8c\u4f60\u5c31\u74dc\u4e86\u3002<\/p>\n<p>\u5b8c\u540e\u70b9write\uff0c\u8fdb\u884c\u70e7\u5f55\u3002\u5b8c\u6210\u540e\u63d2\u5165raspberrypi3\uff0c\u63a5\u4e0a\u663e\u793a\u3001\u65e0\u7ebf\u952e\u9f20\uff0c\u63a5\u901a\u7535\u6e90\u5373\u53ef\u6309\u5f00\u673a\u8fdb\u5165\u684c\u9762\u3002\u5c0f\u72fc\u662f\u7528\u8fd9\u79cd\u65b9\u6cd5\u88c5\u7684\u3002<\/p>\n<p>?<\/p>\n<p>&#8212;&#8212;&#8212;\u64cd\u4f5c\u51c6\u5907&#8212;&#8212;&#8211;<\/p>\n<p>\u7cfb\u7edf\u5b89\u88c5\u5b8c\u540e\u4f60\u6765\u5230\u4e00\u4e2a\u6709\u70b9\u964c\u751f\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002<\/p>\n<p>\u5de6\u4e0a\u89d2\u7684menu\u76f8\u5f53\u4e8ewin\u7684\u5f00\u59cb\uff0c\u5730\u7403\u4e0a\u6709\u4e2a\u9f20\u6807\u5f53\u7136\u662f\u6d4f\u89c8\u5668\uff0c\u6587\u4ef6\u67dc\u662f\u6211\u7684\u7535\u8111\uff0c\u4e00\u4e2a\u9ed1\u7535\u8111\u5c4f\u5e55\u662f\u547d\u4ee4\u884c\uff0c\u7ea2\u8272\u7684\u592a\u9633\u662f\u4e00\u4e2a\u5f88\u5389\u5bb3\u7684\u5bb6\u4f19\uff0c\u4f46\u662f\u5c0f\u72fc\u53ea\u4f1a\u7528\u5b83\u753b\u51fd\u6570\u56fe\uff0c\u6700\u53f3\u8fb9\u7684\u767d\u8272\u7684\u72d0\u72f8\u662f\u5b83\u5de6\u8fb9\u7684\u7ea2\u8272\u592a\u9633\u7684\u597d\u670b\u53cb\uff0c\u53cd\u6b63\u5f88\u5389\u5bb3\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684wifi\u56fe\u6807\uff0c\u63a5\u5165\u4e00\u4e2awifi\uff0c\u4e5f\u8bb8\u70b9\u51fb\u4e4b\u540e\u9700\u8981\u7b49\u4e00\u4f1a\u624d\u80fd\u5f39\u51fa\u3002<\/p>\n<p>&#8212;<\/p>\n<p>\u7b2c\u4e8c\u90e8\uff0c\u628a\u81ea\u5df1\u53d8\u6210root\u7528\u6237\uff0c\u83b7\u53d6\u6700\u9ad8\u6743\u9650\uff0c\u65b9\u6cd5\u662f\u5728\u547d\u4ee4\u884c\uff08\u9ed1\u8272\u7535\u8111\u5c4f\u5e55\u56fe\u6807\uff09\u91cc\u8f93\u5165<\/p>\n<p>sudo passwd root<\/p>\n<p>\u5b8c\u540e\u8ba9\u4f60\u8bbe\u7f6e\u4e00\u4e2a\u5bc6\u7801<\/p>\n<p>\u518d\u8f93\u4e00\u904d\u5bc6\u7801<\/p>\n<p>ok\u4e86\uff0c\u6ce8\u610f\u4f60\u8f93\u5bc6\u7801\u65f6\u5019\u662f\u6ca1\u53cd\u5e94\u7684<\/p>\n<p>\u8fd9\u662f\u8bbe\u7f6e\u4e86root\u7528\u6237\uff08\u6700\u9ad8\u6743\u9650\uff09\u7684\u5bc6\u7801<\/p>\n<p>&#8212;<\/p>\n<p>\u7136\u540e\u9ed8\u8ba4root\u7528\u6237\u6ca1\u6709\u542f\u7528\uff0c<\/p>\n<p>sudo passwd &#8211;unlock root<\/p>\n<p>\u7528\u8fd9\u4e2a\u547d\u4ee4\u89e3\u9501\u5b83<\/p>\n<p>&#8212;<\/p>\n<p>\u518d\u8f93\u5165sudo?raspi-config<\/p>\n<p>\u5f97\u5230\u4e00\u4e2a\u84dd\u8272\u7684\u83dc\u5355<\/p>\n<p>Raspbian\u9ed8\u8ba4\u662f\u82f1\u5f0f\u952e\u76d8\u5e03\u5c40\uff0c\u5f88\u591a\u7b26\u53f7\u90fd\u662f\u98a0\u5012\u7684\u3002\u6211\u4eec\u9700\u8981\u6539\u56de\u6765\uff0c\u65b9\u6cd5\u662f\uff1a<\/p>\n<p>raspi-config \u7b2c5\u4e2a\u9009\u9879internationalisation options &#8211; \u66f4\u6539\u952e\u76d8\u8f93\u51fa-\u666e\u901a104key-pc\u952e\u76d8-other-English\uff08us\uff09-the default&#8230;-\u540e\u9762\u4e00\u8def\u786e\u8ba4\u884c\u4e86<\/p>\n<p>\u53e6\u5916\uff0c\u4eceboot options\u91cc\u9009\u62e9\u9700\u8981\u767b\u5f55\u7136\u540e\u8fdb\u5165\u684c\u9762<\/p>\n<p>\u8fd9\u91cc\u53ef\u80fd\u4f1a\u91cd\u542f\uff0c\u5b8c\u540e\u8f93\u5165\u7528\u6237\u540droot\uff0c\u5bc6\u7801\u4f60\u521a\u624d\u8bbe\u7684\u8fdb\u7cfb\u7edf<\/p>\n<p>&#8212;<\/p>\n<p>Raspbian\u4e0ewin\u4e0d\u540c\uff0c\u5b83\u53ef\u4ee5\u5728\u8054\u7f51\u7684\u60c5\u51b5\u4e0b\u901a\u8fc7\u8f93\u5165\u547d\u4ee4\u884c\u76f4\u63a5\u5b89\u88c5\u8f6f\u4ef6\uff0c\u7c7b\u4f3c\u4e8e\u6709\u4e00\u4e2a\u5e94\u7528\u5546\u5e97<\/p>\n<p>\u6211\u4eec\u9996\u5148\u66f4\u65b0\u5e94\u7528\u5546\u5e97<\/p>\n<p>sudo apt-get update<\/p>\n<p>&#8212;<\/p>\n<p>\u5b89\u88c5\u4e2d\u6587\u652f\u6301\u6a21\u5757<\/p>\n<p>sudo apt-get install ttf-wqy-microhei<\/p>\n<p>\u6709\u53ef\u80fd\u8981\u8f93\u4e00\u6b21Y\u56de\u8f66<\/p>\n<p>\u4ee5\u540e\u5176\u4ed6\u64cd\u4f5c\u4e5f\u53ef\u80fd\u9047\u5230<\/p>\n<p>&#8212;<\/p>\n<p>\u6269\u5c55\u5206\u533a\uff0cRaspbian\u9ed8\u8ba4\u78c1\u76d8\u7a7a\u95f4\u5f88\u5c0f\uff0c\u6211\u4eec\u9700\u8981\u6269\u5c55\u5b83\u3002\u6ce8\u610f\uff0c\u8bf7\u770b\u5b8c\u8fd9\u4e00\u8282\u518d\u5f00\u59cb\u64cd\u4f5c<\/p>\n<p>?<\/p>\n<p>df -h<\/p>\n<p>\u770b\u4e00\u4e0b\u5206\u533a\u7684\u60c5\u51b5\uff0c<\/p>\n<p>sudo fdisk \/dev\/mmcblk0 ? ? ? ? \u8fd9\u662f\u4e2a\u96f6\uff0c\u4e0d\u662f\u6b27<\/p>\n<p>\u6309P<\/p>\n<p>\u5c06\u770b\u5230\u7684\u5206\u533a\u590d\u5236\u4e0b\u6765\/dev\/mmcblk0p2\u7684start\u503c\uff0c\u8bb0\u4e0b\u6765\u3002<\/p>\n<p>\u6267\u884c\u547d\u4ee4\uff1ad ?\uff08\u5220\u9664\u5206\u533a2,\u9009\u62e92\uff09<\/p>\n<p>\u6267\u884c\u547d\u4ee4\uff1ap \uff08\u6309\u8fd9\u65f6\u5019\u5e94\u8be5\u662f\u5c11\u4e86\u4e00\u4e2a\u5206\u533a\u4e86\uff09<\/p>\n<p>\u6267\u884c\u547d\u4ee4\uff1an ?(\u52a0\u5206\u533a)<\/p>\n<p>\u6267\u884c\u547d\u4ee4\uff1ap \uff08\u4e3b\u8981\u5206\u533a\uff09<\/p>\n<p>\u9009\u62e92<\/p>\n<p>\u5728\u5f00\u59cb\u4f4d\u7f6e\u8f93\u5165start\u7684\u503c\uff0c<\/p>\n<p>\u540e\u9762\u7684\u503c\u9ed8\u8ba4\u5373\u53ef<\/p>\n<p>\u6267\u884c\u547d\u4ee4\uff1ap<\/p>\n<p>\u6267\u884c\u547d\u4ee4\uff1aw<\/p>\n<p>\u7136\u540e\u6211\u4eec\u91cd\u542f\u6811\u8393\u6d3e<\/p>\n<p>sudo resize2fs \/dev\/mmcblk0p2<br \/>\n\u4ee5\u4e0a\u5185\u5bb9\u5f15\u7528\u81ea\u5c0f\u661f\u661fBLOG<\/p>\n<p>&nbsp;<\/p>\n<p>*\u6b64\u5904\u6269\u5c55\u5206\u533a\u65f6\u5728\u8f93\u5165start\u540e\u8fd9\u4e00\u6b65\u201c\u540e\u9762\u7684\u9ed8\u8ba4\u503c\u5373\u53ef\u201d\u8fd9\u91cc\u5efa\u8bae\u6bd4\u9ed8\u8ba4\u503c\u5c0f\u4e00\u4e9b\u3002\u56e0\u4e3a\u4e0d\u540ctf\u5361\u7684\u5bb9\u91cf\u662f\u6709\u7ec6\u5fae\u5dee\u522b\u7684\uff0c\u6211\u7528sandisk\u505a\u7684\u7cfb\u7edf\uff0c\u56de\u5934\u505a\u5907\u4efd\u7684\u65f6\u5019\uff0c\u6ca1\u6cd5\u505a\u5230team\u7684TF\u5361\u91cc\uff0c\u56e0\u4e3ateam\u7684\u5361\u5c0f\u4e00\u70b9\u70b9\u3002<\/p>\n<p>\u5177\u4f53\u6211\u6ca1\u6709\u4eb2\u6d4b\u3002\u611f\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u8bd5\u4e00\u4e0b\u3002<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>\u5b89\u88c5apache\u3001php<\/p>\n<p>apache\u662f\u670d\u52a1\u5668\u8f6f\u4ef6\uff0c\u8ba9\u6811\u8393\u6d3e\u53ef\u4ee5\u8fd0\u884c\u4e00\u4e2a\u7f51\u7ad9\u3002<\/p>\n<p>php\u662fwordpress\u548ckod\u4f9d\u8d56\u7684\u4e00\u79cd\u8bed\u8a00\u3002<\/p>\n<p>\u8fd9\u4fe9\u5b89\u88c5\u6bd4\u8f83\u7b80\u5355<\/p>\n<p>sudo apt-get install apache2 php5<\/p>\n<p>\u4e00\u8defy<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>\u5b89\u88c5sql\u6570\u636e\u5e93<\/p>\n<p>sudo apt-get install apache2 php5-mysql mysql-server<\/p>\n<p>\u4e00\u8defy<\/p>\n<p>\u4e2d\u95f4\u4f1a\u8ba9\u4f60\u8bbe\u7f6esql\u6570\u636e\u5e93\u5bc6\u7801<\/p>\n<p>sql\u6570\u636e\u5e93\u662f\u7528\u6765\u5b58\u50a8wordpress\u7684\u6570\u636e\u7684\uff0c\u7c7b\u4f3c\u4e8e\u4e00\u4e2a\u6863\u6848\u67dc\uff0c\u4e0e\u4f60\u7684wordpress\u6709\u5173\u7684\u5f88\u591a\u6570\u636e\u90fd\u8bb0\u5f55\u5728\u91cc\u9762\u3002<\/p>\n<p>\u6d4b\u8bd5\u4e00\u4e0bsql\u5b89\u88c5\u7684\u6709\u4e0d\u6709\u95ee\u9898\uff1a<\/p>\n<p>root@raspberrypi:~$ sudo mysql -u root -p<\/p>\n<p>Enter password:<br \/>\nWelcome to the MySQL monitor. Commands end with ; or g.<br \/>\nYour MySQL connection id is 42<br \/>\nServer version: 5.5.28-1 (Debian)<\/p>\n<p>Copyright (c) 2000, 2012, Oracle and\/or its affiliates. All rights reserved.<\/p>\n<p>Oracle is a registered trademark of Oracle Corporation and\/or its<br \/>\naffiliates. Other names may be trademarks of their respective<br \/>\nowners.<\/p>\n<p>Type &#8216;help;&#8217; or &#8216;h&#8217; for help. Type &#8216;c&#8217; to clear the current input statement.<\/p>\n<p>mysql&gt; quit<br \/>\nBye<br \/>\n?<\/p>\n<p>&#8212;&#8212;&#8212;-<\/p>\n<p>\u4f7fsql\u6570\u636e\u5e93\u66f4\u5b89\u5168<\/p>\n<p>&nbsp;<\/p>\n<p>pi@raspberrypi ~ $ sudo \/usr\/bin\/mysql_secure_installation<br \/>\nEnter current password for root (enter for none):<br \/>\nChange the root password? [Y\/n] n<br \/>\nRemove anonymous users? [Y\/n] y<br \/>\nDisallow root login remotely? [Y\/n] y<br \/>\nRemove test database and access to it? [Y\/n] y<br \/>\nReload privilege tables now? [Y\/n] y<br \/>\nThanks for using MySQL!<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>\u5efa\u7acb\u4e00\u4e2asql\u6570\u636e\u5e93<\/p>\n<p>\u4e0a\u9762\u5b89\u88c5\u4e86sql\u6570\u636e\u5e93\uff0c\u7c7b\u4f3c\u4e8e\u4f60\u5b89\u88c5\u4e86\u4e00\u4e2a\u6863\u6848\u67dc<\/p>\n<p>\u8fd9\u91cc\u5efa\u7acb\u6570\u636e\u5e93\u7c7b\u4f3c\u4e8e\u4f60\u5728\u6863\u6848\u67dc\u91cc\u8bbe\u7f6e\u4e86\u4e00\u4e2a\u62bd\u5c49\uff0c\u4e13\u95e8\u5b58\u653ewordpress\u7684\u6570\u636e\uff0c\u5f53\u7136\uff0c\u4f60\u8fd8\u53ef\u4ee5\u8bbe\u7f6e\u522b\u7684\u62bd\u5c49\uff0c\u653e\u522b\u7684\u4e1c\u897f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>root@raspberrypi:~$ mysql -u root -p<br \/>\nEnter password:<br \/>\nWelcome to the MySQL monitor. Commands end with ; or g.<br \/>\nYour MySQL connection id is 44<br \/>\nServer version: 5.5.28-1 (Debian)<\/p>\n<p>Copyright (c) 2000, 2012, Oracle and\/or its affiliates. All rights reserved.<\/p>\n<p>Oracle is a registered trademark of Oracle Corporation and\/or its<br \/>\naffiliates. Other names may be trademarks of their respective<br \/>\nowners.<\/p>\n<p>Type &#8216;help;&#8217; or &#8216;h&#8217; for help. Type &#8216;c&#8217; to clear the current input statement.<\/p>\n<p>mysql&gt; create database wordpress;<br \/>\nQuery OK, 1 row affected (0.00 sec)<\/p>\n<p>mysql&gt; create user wpfred;<br \/>\nQuery OK, 0 rows affected (0.00 sec)<\/p>\n<p>mysql&gt; set password for wpfred = password(&#8220;raindrop&#8221;);<br \/>\nQuery OK, 0 rows affected (0.00 sec)<\/p>\n<p>mysql&gt; grant all PRIVILEGES on wordpress.* to wpfred@localhost identified by &#8216;raindrop&#8217;;<br \/>\nQuery OK, 0 rows affected (0.00 sec)<\/p>\n<p>mysql&gt; exit<br \/>\nBye<\/p>\n<p>\u4e0a\u9762\u7684wpfred\u662f\u4e3e\u4f8b\u5b50\u7684\u7528\u6237\u540d\uff0c\u4f60\u53ef\u4ee5\u6539\u6210\u4f60\u7684<\/p>\n<p>raindrop\u662f\u4e3e\u4f8b\u5b50\u7684\u5bc6\u7801\uff0c\u4f60\u53ef\u4ee5\u6539\u6210\u4f60\u7684<\/p>\n<p>&nbsp;<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>\u5b89\u88c5wordpress<\/p>\n<p>\u6211\u539f\u5148\u662f\u7528android+ksweb\u8fd0\u884cwordpress\u7684\uff0c\u90a3\u8fb9\u662f\u76f4\u63a5\u4e0b\u8f7d\u4e86wordpress\u89e3\u538b\u5230\u76ee\u5f55\u91cc\u5c31\u53ef\u4ee5\u7528\u4e86\uff0c\u5728\u6811\u8393\u6d3e+LAMP\u7684\u73af\u5883\u4e0b\u5c1d\u8bd5\u4e86\u5f88\u591a\uff0c\u8fd9\u79cd\u7eff\u8272\u7684\u65b9\u6cd5\u4e00\u76f4\u6ca1\u6cd5\u6210\u529f\u3002<\/p>\n<p>\u53ea\u80fd\u6309\u7167\u6559\u7a0b\u4e0a\u7684\u4e00\u6b65\u4e00\u6b65\u5b89\u88c5\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>pi@raspberrypi ~ $ sudo apt-get install wordpress<br \/>\n\u8fd9\u662f\u5b89\u88c5\u4e86wordpress\u8f6f\u4ef6<\/p>\n<p>apache\u7684\u9ed8\u8ba4\u8bbf\u95ee\u76ee\u5f55\u8ddfwordpress\u9ed8\u8ba4\u5b89\u88c5\u76ee\u5f55\u4e0d\u540c\uff0c\u6240\u4ee5\u9700\u8981\u628a\u5b83\u4fe9\u8fde\u63a5\u8d77\u6765<br \/>\npi@raspberrypi ~ $ sudo ln -s \/usr\/share\/wordpress \/var\/www\/myblog<br \/>\n\u76f8\u5f53\u4e8e\u5728apache\u7684\u9ed8\u8ba4\u8bbf\u95ee\u76ee\u5f55\u91cc\u505a\u4e86\u4e00\u4e2awordpress\u9ed8\u8ba4\u5b89\u88c5\u76ee\u5f55\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u5176\u4e2d\u7684myblog\u4f60\u53ef\u4ee5\u81ea\u5df1\u4fee\u6539\u4e00\u4e0b\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u628awordpress\u7684\u9884\u7f6e\u7684\u8bbe\u7f6e\u6587\u4ef6\u653e\u5230\u6b63\u786e\u7684\u5730\u65b9<br \/>\npi@raspberrypi ~ $ sudo cp \/usr\/share\/wordpress\/wp-config-sample.php \/etc\/wordpress\/config-default.php<\/p>\n<p>\u7136\u540e\u6253\u5f00\u6587\u4ef6\u7ba1\u7406\u5668\uff0c\u5c31\u662f\u5de6\u4e0a\u89d2\u4e00\u4e2a\u67dc\u5b50\u7684\u56fe\u6807\uff0c\u627e\u5230\/etc\/wordpress\/config-default.php<br \/>\n\u6253\u5f00\u5b83\uff0c\u4f1a\u627e\u5230\u4e0b\u9762\u7684\u6bb5\u843d<br \/>\n\/\/ ** MySQL settings &#8211; You can get this info from your web host ** \/\/<br \/>\n\/** The name of the database for WordPress *\/<br \/>\ndefine(&#8216;DB_NAME&#8217;, &#8216;wordpress&#8217;);<\/p>\n<p>\/** MySQL database username *\/<br \/>\ndefine(&#8216;DB_USER&#8217;, &#8216;username_here&#8217;);<\/p>\n<p>\/** MySQL database password *\/<br \/>\ndefine(&#8216;DB_PASSWORD&#8217;, &#8216;password_here&#8217;);<br \/>\n\u7528\u4f60\u521a\u624d\u8bbe\u7f6e\u7684sql\u7684\u7528\u6237\u540d\u5bc6\u7801\u6362\u4e0a\u53bb\u5c31\u884c\u4e86<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>\u5b8c\u6210\u4e0a\u9762\u7684\u6b65\u9aa4\u4e4b\u540e\uff0cwordpress\u5e94\u8be5\u5c31\u5df2\u7ecf\u5b89\u88c5\u5b8c\u6210\u4e86\u3002\u53ea\u9700\u8bbf\u95ee\u4f60\u7684ip\uff0c\u5c31\u53ef\u4ee5\u6253\u5f00wordpress\u9875\u9762\u4e86\u3002<\/p>\n<p>\u5982\u6307\u793a\u64cd\u4f5c\u5373\u53ef\u8bbf\u95eewordpress\u4e86\uff01<\/p>\n<p>&nbsp;<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>\u5176\u4ed6\uff0c\u56e0\u4e3a\u6211\u662f\u4ece\u522b\u7684blog\u5907\u4efd\u8f6c\u8fc7\u6765\u7684\uff0c\u6240\u4ee5\u9700\u8981\u5b89\u88c5\u4e00\u4e2a\u63d2\u4ef6\u8f83WP CLONE\u3002\u5728\u5b89\u88c5\u63d2\u4ef6\u65f6\u9047\u5230\u4e86\u95ee\u9898\uff0c\u6bd4\u5982\u9700\u8981\u586b\u5199ftp\u7528\u6237\u540d\u4ec0\u4e48\u7684\uff0c\u8fd8\u6709\u540e\u6765\u7684\u201c\u65e0\u6cd5\u521b\u5efa\u76ee\u5f55\u201d<\/p>\n<p>\u7ecf\u8fc7\u7814\u7a76\u662f\u6743\u9650\u7684\u95ee\u9898\u3002<\/p>\n<p>\u9ed8\u8ba4\u7684wordpress\u7684\u5b58\u50a8\u76ee\u5f55\u5e76\u4e0d\u662f\/var\/www\/\u4e0b\u9762\u7684\uff0c\u800c\u662f\/usr\/share\/wordpress\u4e0b\u9762\u7684\uff01\u9ad8\u6e05\u8fd9\u4e2a\u95ee\u9898\u6d6a\u8d39\u4e86\u6211\u597d\u591a\u5929\u65f6\u95f4\u3002<\/p>\n<p>\u6240\u4ee5\u6211\u4eec\u9700\u8981\u7ed9\u5b83\u4eec\u66f4\u6539\u6743\u9650<\/p>\n<p>sudo \u00a0chown -R \u00a0www-data \u00a0\/usr\/share\/wordpress\/wp-content\/plugins (\u8bbe\u7f6e\u8fd9\u4e2a\u76ee\u5f55\u7684\u6240\u6709\u8005\uff09<\/p>\n<p>sudo \u00a0chmod -R \u00a0775 \u00a0\/usr\/share\/wordpress\/wp-content\/plugins (\u8bbe\u7f6e\u8fd9\u4e2a\u76ee\u5f55\u7684\u6743\u9650\uff09<\/p>\n<p>755\u5c31\u662f\u6240\u6709\u8005\u5bf9\u8fd9\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\u53ef\u8bfb\u53ef\u5199\u53ef\u6267\u884c\uff0c\u8ddf\u6240\u6709\u8005\u4e00\u4e2a\u7ec4\u7684\u4eba\u53ef\u8bfb\u53ef\u6267\u884c\u4e0d\u53ef\u5199\u5165\uff0c\u5176\u4ed6\u4eba\u53ef\u8bfb\u53ef\u6267\u884c\u4e0d\u53ef\u5199\u5165<\/p>\n<p>wp-content\u76ee\u5f55\u4e0bplugins\u3001themes\u3001\u5168\u90e8\u5411\u4e0a\u9762\u4e24\u4e2a\u547d\u4ee4\u64cd\u4f5c\uff0c\u6539\u6240\u6709\u8005\u548c\u6743\u9650<\/p>\n<p>\u65b0\u5efa\u4e00\u4e2a\u76ee\u5f55upgrade\uff0c\u5b8c\u540e\u4e5f\u540c\u6837\u6539\u6240\u6709\u8005\u548c\u6743\u9650<\/p>\n<p>\u53e6\u5916\uff0c\u6211\u4eec\u770b\u5230uploads\u76ee\u5f55\u6307\u5411var\/lib\/wordpress\/wp-content\/uploads<\/p>\n<p>\u6240\u4ee5\u6211\u4eec\u628a\u8fd9\u4e2a\u76ee\u6807\u76ee\u5f55\u4e5f\u6539\u6240\u6709\u8005\u548c\u6743\u9650<\/p>\n<p>\u5982\u6b64\u6211\u4eec\u7684wordpress\u5c31\u53ef\u4ee5\u4e0a\u4f20\u3001\u5b89\u88c5\u63d2\u4ef6\u3001\u4e3b\u4f53\u5565\u7684\u4e86\u3002<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>\u5b89\u88c5kod<\/p>\n<p>kod\u5b89\u88c5\u5f88\u7b80\u5355\uff0c\u5728\u3001var\/www\/\u4e0b\u9762\u5efa\u7acb\u4e00\u4e2a\u76ee\u5f55\uff0c\u6bd4\u5982\u53ebkod<\/p>\n<p>\u7136\u540e\u4ece\u7f51\u7ad9\u4e0a\u4e0b\u8f7d\u7684kod\u7684\u538b\u7f29\u6587\u4ef6\uff0c\u89e3\u538b\u7f29\uff0c\u6240\u6709\u7684\u6587\u4ef6\u7528U\u76d8\u62f7\u8d1d\u5230\u8fd9\u4e2a\u76ee\u5f55\u91cc<\/p>\n<p>\u5728\/etc\/apache2\/sites-enabled\/\u6587\u4ef6\u5939\u4e0b\u6709\u4e2a000-default.conf\u6587\u4ef6\uff0c\u6253\u5f00\u5b83<\/p>\n<p>\u6211\u4eec\u770b\u5230\u6709\u4e00\u5927\u6bb5\u4ee3\u7801<\/p>\n<p>\u4ee5&lt;virtualhost ?*:80&gt;\u4e3a\u5f00\u59cb<\/p>\n<p>\u4ee5&lt;\/virtualhost&gt;\u7ed3\u675f<\/p>\n<p>\u5c06\u6574\u6bb5\u90fd\u590d\u5236\u4e00\u4e0b<\/p>\n<p>\u5728&lt;\/virtualhost&gt;\u4e0b\u9762\u518d\u8d77\u4e00\u884c<\/p>\n<p>\u7c98\u8d34\u4e00\u4e0b<\/p>\n<p>\u8fd9\u91cc\u7684*\uff1a80\u662f\u4e00\u4e2a\u7aef\u53e3\uff0c\u5f53\u4f60\u8bbf\u95ee\u4e00\u4e2a\u7f51\u5740\u7684\u65f6\u5019\uff0c\u9ed8\u8ba4\u8bbf\u95ee\u7684\u662f80\u7aef\u53e3<\/p>\n<p>\u6211\u4eec\u768480\u7aef\u53e3\u5df2\u7ecf\u7ed9wordpress\u4e86\uff0c\u6240\u4ee5\u8981\u518d\u8bbe\u7f6e\u4e00\u4e2a\u7aef\u53e3<\/p>\n<p>\u6240\u4ee5\u5728\u6211\u4eec\u521a\u7c98\u8d34\u7684\u8fd9\u4e00\u6bb5\u91cc\u628a*:80\u4e2d\u768480\u6539\u6210\u4e00\u4e2a\u522b\u7684\u6570\u5b57<\/p>\n<p>\u7136\u540e\u5230\/etc\/apache2\u76ee\u5f55\u4e0b\uff0c\u6253\u5f00ports.conf\u6587\u4ef6<\/p>\n<p>\u5728listen 80<\/p>\n<p>\u4e0b\u9762\u518d\u52a0\u4e00\u884c<\/p>\n<p>listen \u4f60\u521a\u624d\u6539\u7684\u6570\u5b57\uff0c\u4ee3\u8868\u7740\u9700\u8981apache\u8f6f\u4ef6\u5b9e\u65f6\u5173\u6ce8\u8fd9\u4e2a\u7aef\u53e3\u7684\u8baf\u606f\uff0c\u5982\u679c\u6709\u4ece\u8fd9\u4e2a\u7aef\u53e3\u6765\u7684\u8bbf\u95ee\u8bf7\u6c42\uff0c\u5c31\u8f6c\u5230kod\u91cc<\/p>\n<p>\u8fd9\u6837\u4e4b\u540e\u91cd\u542f\u4e0b\uff0c\u518d\u8bbf\u95ee\u81ea\u5df1\u7684ip\u5730\u5740\uff0c\u540e\u52a0\u5192\u53f7\u548c\u4f60\u6539\u7684\u6570\u5b57\uff0c\u6bd4\u5982<\/p>\n<p>http:\/\/192.168.0.111:2518<\/p>\n<p>\u5c31\u53ef\u4ee5\u5230\u8fbekod\u7684\u767b\u9646\u9875\u4e86<\/p>\n<p>\u7528\u6237\u540d\u5bc6\u7801\u90fd\u662fadmin\u8fdb\u5165\u5373\u53ef<\/p>\n<p>\u5982\u679c\u663e\u793a\u6ca1\u6709\u6743\u9650\uff0c\u4e5f\u53ef\u4ee5\u50cfwordpress\u4e00\u822c\uff0c\u7ed9\u8fd9\u4e2a\u76ee\u5f55\u66f4\u6539\u6743\u9650<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>\u4ee5\u4e0a\u5f88\u591a\u5185\u5bb9\u53c2\u8003\u4e86<\/p>\n<p>unixetc.co.uk\u611f\u8c22\u5927\u82f1\u5e1d\u56fd\u7684\u670b\u53cb\u4eec<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5165\u624braspberrypi3\u540e\u7684\u7b2c\u4e00\u4e2a\u9636\u6bb5\u6027\u7684\u76ee\u6807\u5c31\u662fwordpress&amp;kodexplorer \u7b2c\u4e00 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.bluemountain.pw\/index.php?rest_route=\/wp\/v2\/posts\/208"}],"collection":[{"href":"https:\/\/www.bluemountain.pw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bluemountain.pw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bluemountain.pw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bluemountain.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=208"}],"version-history":[{"count":5,"href":"https:\/\/www.bluemountain.pw\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions"}],"predecessor-version":[{"id":215,"href":"https:\/\/www.bluemountain.pw\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions\/215"}],"wp:attachment":[{"href":"https:\/\/www.bluemountain.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bluemountain.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bluemountain.pw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}