{"id":71,"date":"2017-08-01T02:02:17","date_gmt":"2017-07-31T18:02:17","guid":{"rendered":"http:\/\/kaispace.cn\/?p=71"},"modified":"2017-08-01T02:02:17","modified_gmt":"2017-07-31T18:02:17","slug":"%e5%85%b3%e4%ba%8ewordpress%e5%9c%a8centos%e4%b8%8a%e9%83%a8%e7%bd%b2%e4%bd%bf%e7%94%a8%e7%9a%84%e8%bf%87%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/blog.kaispace.cn\/?p=71","title":{"rendered":"\u5173\u4e8ewordpress\u5728centOS\u4e0a\u90e8\u7f72\u4f7f\u7528\u7684\u8fc7\u7a0b"},"content":{"rendered":"<p>\u53c2\u8003\u6587\u7ae0:<a href=\"https:\/\/www.qcloud.com\/document\/product\/213\/8044\">https:\/\/www.qcloud.com\/document\/product\/213\/8044<\/a><\/p>\n<p>\u5728\u90e8\u7f72\u8fc7\u7a0b\u4e2d\uff0c\u56e0\u4e3a\u4e4b\u524d\u5df2\u7ecf\u5b89\u88c5\u8fc7nginx\u4ee5\u53caMysql\uff0c\u6240\u4ee5\u5927\u90e8\u5206\u90e8\u7f72\u5df2\u7ecf\u641e\u5b9a\uff0c\u4f46\u662f\u8fd8\u662f\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u8bb8\u591a\u95ee\u9898\u3002<\/p>\n<p>\u4e00\u5f00\u59cb\u9075\u5faa\u8fc7\u7a0b\uff0c\u4e00\u76f4\u8fdb\u884c\u5230\u8bbf\u95ee\/install.php\u7684\u6b65\u9aa4\uff0c\u4e00\u76f4\u63d0\u793aError php is not running\u7684\u63d0\u793a\uff0c\u6211\u5c31\u5947\u4e86\u602a\u4e86\uff0c\u660e\u660e\u6bcf\u4e00\u6b65\u90fd\u6309\u7167\u6559\u7a0b\uff0c\u800c\u4e14index.php\u4e5f\u662f\u6ca1\u95ee\u9898\u7684\uff0c\u767e\u5ea6\u4e86\u8bb8\u591a\u6587\u7ae0\uff0c\u540e\u6765\u6211\u53d1\u73b0\u6211\u8fd9\u4e2a\u7248\u672c\u7684nginx\u7684\u914d\u7f6e\u6587\u4ef6,nginx.conf\u4e0e\u6559\u7a0b\u4e2d\u4e0d\u540c\uff0c\u6559\u7a0b\u4e2d\u65b0\u5efa\u7684\u914d\u7f6e\u6587\u4ef6\u5728\u6211\u8fd9\u91cc\u4e0d\u8d77\u4f5c\u7528\u3002<\/p>\n<blockquote><p>\u8bf7\u4f7f\u7528 Vim \u547d\u4ee4\u6253\u5f00<code>default.conf<\/code>\u6587\u4ef6\uff0c\u53d6\u6d88\u5bf9 IPv6 \u5730\u5740\u7684\u76d1\u542c\u540c\u65f6\u914d\u7f6e Nginx\uff0c\u5b9e\u73b0\u4e0e PHP \u7684\u8054\u52a8\u3002<\/p><\/blockquote>\n<div class=\"markdown-code J-markdownCode\">\n<div class=\"markdown-code-bd J-codeBox\">\n<blockquote>\n<pre><code>vim \/etc\/nginx\/conf.d\/<span class=\"hljs-keyword\">default<\/span>.conf<\/code><\/pre>\n<\/blockquote>\n<p>\u5728\u6211\u8fd9\u91cc\u662f\u76f4\u63a5\u7684\/etc\/nginx\/nginx.conf\uff0c\u6253\u5f00\u540e\u662f\u719f\u6089\u7684\u914d\u7f6e\u5185\u5bb9\uff08\u4e4b\u524d\u7be1\u6539\u8fc7\u65e0\u6570\u6b21\uff0c\u88ab\u5751\u5f97\u540e\u6015\uff09<\/p>\n<p>\u5728server\u540e\u590d\u5236\u6559\u7a0b\u4e2d\u7684<\/p>\n<blockquote><p><em>#pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000<\/em><br \/>\n<em>#<\/em><br \/>\n<em>location ~ .php$ {<\/em><\/p>\n<p><em><code><span class=\"hljs-attribute\">fastcgi_pass<\/span>   <span class=\"hljs-number\">127.0.0.1:9000<\/span>;<br \/>\n<span class=\"hljs-attribute\">fastcgi_index<\/span>   index.php;<br \/>\n<span class=\"hljs-attribute\">fastcgi_param<\/span>  SCRIPT_FILENAME  <span class=\"hljs-variable\">$document_root<\/span><span class=\"hljs-variable\">$fastcgi_script_name<\/span>;<br \/>\n<span class=\"hljs-attribute\">include<\/span>        fastcgi_params;<\/code><\/em><\/p>\n<p>}<\/p><\/blockquote>\n<p>\u56de\u5230\u539f\u6765\u7684\/wp-admin\/install.php\u95ee\u9898\u5c31\u89e3\u51b3\u5566~<\/p>\n<p>\u7136\u540e\u641e\u5b9a\u8fd9\u4e2a\u95ee\u9898\u4e4b\u540e\u8fd8\u9047\u5230\u4e00\u4e2a\u4e3b\u9875\u603b\u662f\u8df3\u8f6c\u5230nginx\u9ed8\u8ba4index.html\u95ee\u9898\uff0c\u8fd9\u4e2a\u5728wordpress\u540e\u53f0\u7684\u8bbe\u7f6e-\u5e38\u89c4\uff0c\u7136\u540e\u4fdd\u5b58\uff0c\u6e05\u9664\u6d4f\u89c8\u5668\u7f13\u5b58\u5c31\u53ef\u4ee5\u89e3\u51b3<\/p>\n<p>BTW mysql\u53ef\u4ee5\u501f\u52a9Navicat for Mysql\u5728\u672c\u5730\u89e3\u51b3\uff0c\u5bf9\u4e8e\u65b0\u624b\u6765\u8bf4\u6307\u4ee4\u5efa\u8868\u4ee5\u53ca\u7528\u6237\u6743\u9650\u95ee\u9898\u592a\u9ebb\u70e6\u4e86<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u8003\u6587\u7ae0:https:\/\/www.qcloud.com\/document\/product\/213\/8044 \u5728&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22,16],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=\/wp\/v2\/posts\/71"}],"collection":[{"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71"}],"version-history":[{"count":0,"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kaispace.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}