{"id":651,"date":"2020-01-28T17:19:52","date_gmt":"2020-01-28T09:19:52","guid":{"rendered":"http:\/\/47.242.20.44\/?p=651"},"modified":"2020-01-28T17:19:52","modified_gmt":"2020-01-28T09:19:52","slug":"%e6%a0%91%e8%8e%93%e6%b4%be%e6%90%ad%e5%bb%ba%e8%bd%bb%e9%87%8f%e7%ba%a7%e4%b8%aa%e4%ba%ba%e5%8d%9a%e5%ae%a2%e7%bd%91%e7%ab%99","status":"publish","type":"post","link":"https:\/\/blog.zengqq.com.cn\/?p=651","title":{"rendered":"\u6811\u8393\u6d3e\u642d\u5efa\u8f7b\u91cf\u7ea7\u4e2a\u4eba\u535a\u5ba2\u7f51\u7ad9"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>\u9879\u76ee\u80cc\u666f: <ul><li>\u4e3a\u4e2a\u4eba\u7684\u4e1a\u4f59\u7814\u7a76(\u5bc6\u5b97\u4ee5\u53ca\u897f\u85cf\u5510\u5361\u7684\u7814\u7a76)\u642d\u5efa\u4e00\u4e2a\u6bd4\u8f83\u7b80\u5355\u4f46\u662f\u5f88\u7cfb\u7edf\u7684\u6587\u6863\u5e73\u53f0<\/li><li>\u4fbf\u4e8e\u7f16\u5199\u76f8\u5173\u7814\u7a76\u7684\u6210\u679c(\u4e00\u7bc7\u7bc7\u7684\u5c0f&#8221;blog&#8221;)\u5e76\u67e5\u9605\u5f15\u7528<\/li><\/ul><\/li><li>\u9879\u76ee\u524d\u671f:<ul><li>\u56e0\u4e3a\u6761\u4ef6\u6709\u9650,\u786c\u4ef6\u65b9\u9762\u53ea\u60f3\u5229\u7528\u4e00\u53f0\u6811\u8393\u6d3e2B+\u4f5c\u4e3a\u670d\u52a1\u5668<\/li><li>\u53cc\u6838900GHz\u7684CPU,\u5185\u5b58512M,\u5b58\u50a816G;\u8fd0\u884cDebian<\/li><li>\u8c03\u67e5\u4e86\u4e00\u4e0b,\u6839\u636e&lt;&lt;<a href=\"https:\/\/blog.csdn.net\/embbnux\/article\/details\/18841033\">\u5728\u6811\u8393\u6d3e\u4e0a\u642d\u5efa\u8f7b\u91cf\u7ea7\u535a\u5ba2: wordpress+sqlite<\/a>&gt;&gt;\u7684\u6587\u7ae0,\u89c9\u5f97\u5229\u7528Nginx\u6765\u642d\u5efa\u4f1a\u6bd4\u8f83\u597d,\u76f8\u5173\u7684\u5916\u6587\u4ecb\u7ecd\u4e5f\u6709\u7c7b\u4f3c\u7684&lt;&lt;<a href=\"https:\/\/howtoraspberrypi.com\/install-wordpress-on-a-raspberry-pi-with-nginx\/\">Install WordPress on a Raspberry Pi (with Nginx)&gt;<\/a>&gt; ,where it said ,&#8221;choose to install Nginx. Indeed, if it is a little more complicated to configure than Apache, it is also <strong><span style=\"text-decoration: underline;\">significantly faster<\/span>,<\/strong> which will be a real advantage on a Raspberry Pi.&#8221;<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>\u5b89\u88c5\u8fc7\u7a0b<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u5b89\u88c5nginx,\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4,\u5c31\u80fd\u5b89\u88c5\u6240\u6709nginx,php\u548cmysql\u9700\u8981\u7684\u4f9d\u8d56\u5e93<ul><li>sudo apt-get update       <ul><li>[\u6210\u529f!]<\/li><\/ul><\/li><li>sudo apt-get install -y nginx php php-fpm mariadb-server php-mysql                                 <ul><li>[\u6210\u529f!] \u6839\u636e\u5185\u5bb9\u5176\u5b89\u88c5\u7684\u662f:<ul><li>nginx-full (1.14.2-2) \u548c<\/li><li>php7.3,\u8fd8\u6709<\/li><li>mariadb-server-core-10.3<\/li><\/ul><\/li><\/ul><\/li><\/ul><\/li><li>\u5b89\u88c5\u5b8c\u6210,\u4f46\u662f<strong><span style=\"text-decoration: underline;\">\u5b8c\u5168\u6ca1\u6709<\/span><\/strong>\u63d0\u5230\u586b\u5199MySQL\u7684\u8d26\u6237\u548c\u5bc6\u7801(\u7591\u95ee\u7591\u95ee!),\u6839\u636e\u5916\u6587\u63d0\u5230\u7684,\u9700\u8981\u4e3a\u6811\u8393\u6d3e\u4f18\u5316nginx,\u8fd9\u7bc7<span style=\"text-decoration: underline;\"><a href=\"https:\/\/howtoraspberrypi.com\/install-nginx-raspbian-and-accelerate-your-raspberry-web-server\/\">\u6587\u7ae0<\/a><\/span>\u5c41\u8bdd\u5f88\u591a,\u8bf7\u76f4\u63a5\u770b\u5411 config Nginx \u6bb5\u843d \u547d\u4ee4: <ul><li>sudo nano \/etc\/nginx\/sites-available\/default<\/li><li>&#8230;..<\/li><\/ul><\/li><li>Nginx\u7684Mariadb MySQL\u771f\u7684\u5f88\u96be\u641e\uff0c\u6211\u5b9e\u5728\u662f\u4e0d\u5927\u61c2\u3002\u4fee\u6539\u6570\u636e\u5e93\u7684root\u7684\u5bc6\u7801<ol><li>DROP USER &#8216;root&#8217;@&#8217;localhost&#8217;;<\/li><li>CREATE USER &#8216;root&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;399**6&#8217;;<\/li><li>GRANT ALL PRIVILEGES ON *.* TO &#8216;root&#8217;@&#8217;localhost&#8217;;<\/li><li>MariaDB [(none)]> <em>mysql -u root -p<\/em>  [\u8f93\u5165\u5bc6\u7801399**6]<\/li><li>-> create database wp_database;<\/li><\/ol><\/li><\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">\u5728\u4fee\u6539\u6570\u636e\u5e93\u7684root\u5bc6\u7801\u540e\uff0c\u91cd\u65b0\u8d4b\u6743\u7ed9root\u9047\u5230\u95ee\u9898\uff0c\u603b\u662f\u8b66\u544a\u6743\u9650\u4e0d\u591f\u62d2\u7edd\u8bbf\u95ee<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9879\u76ee\u80cc\u666f: \u4e3a\u4e2a\u4eba\u7684\u4e1a\u4f59\u7814\u7a76(\u5bc6\u5b97\u4ee5\u53ca\u897f\u85cf\u5510\u5361\u7684\u7814 [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89],"tags":[],"class_list":["post-651","post","type-post","status-publish","format-standard","hentry","category-live"],"_links":{"self":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/651","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=651"}],"version-history":[{"count":0,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/651\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}