{"id":470,"date":"2016-02-14T14:31:07","date_gmt":"2016-02-14T06:31:07","guid":{"rendered":"http:\/\/www.fh1986.com\/?p=470"},"modified":"2016-02-14T14:31:07","modified_gmt":"2016-02-14T06:31:07","slug":"%e5%9c%a8%e9%98%bf%e9%87%8c%e4%ba%91-centos-%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88ecs%ef%bc%89%e4%b8%8a%e6%90%ad%e5%bb%ba-nginx-mysql-php-fpm-%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/www.fh1986.com\/index.php\/archives\/470.html","title":{"rendered":"\u5728\u963f\u91cc\u4e91 CentOS \u670d\u52a1\u5668\uff08ECS\uff09\u4e0a\u642d\u5efa nginx + mysql + php-fpm \u73af\u5883"},"content":{"rendered":"<p>\u963f\u91cc\u4e91\u7684\u4e91\u670d\u52a1\u5668\uff08ECS\uff09\u53ef\u4ee5\u9009\u62e9\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\uff0c\u6253\u7b97\u7528\u5b83\u8fd0\u884c Drupal \u6216\u8005 WordPress \uff0c\u4f60\u6700\u597d\u9009\u62e9 Linux \u7cfb\u7edf\uff0c\u8fd9\u7bc7\u6587\u7ae0\u7684\u6f14\u793a\u662f\u57fa\u4e8e\u963f\u91cc\u4e91\u7684 CentOS \u64cd\u4f5c\u7cfb\u7edf\u7684\u670d\u52a1\u5668\u3002\u6211\u4eec\u5728\u4e0a\u9762\u642d\u5efa\u4e00\u4e2a nginx + mysql + php-fpm \u7684\u73af\u5883\uff0c\u8fd9\u5c31\u662f\u5e38\u8bf4\u7684 LNMP \u3002\u6211\u4eec\u4e0d\u8fc7\u591a\u89e3\u91ca\u4ec0\u4e48\u662f\u4ec0\u4e48\uff0c\u800c\u662f\u7740\u91cd\u8bb2\u6d41\u7a0b\u4e0e\u65b9\u6cd5\uff0c\u60f3\u4e86\u89e3\u5177\u4f53\u7684\u7ec6\u8282\uff0c\u53bb\u641c\u7d22\u4e0b\u5427\uff1a\uff09\u8fd9\u4e2a\u624b\u518c\u662f\u5728\u963f\u91cc\u4e91\u4e0a\u6d4b\u8bd5\u7684\uff0c\u4e0d\u8fc7\u5e94\u8be5\u4e5f\u9002\u7528\u4e8e\u5176\u5b83\u4f7f\u7528 CentOS \u7cfb\u7edf\u7684\u670d\u52a1\u5668\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u8fdc\u7a0b\u63a7\u5236\u4f60\u7684\u670d\u52a1\u5668<\/p>\n<p>\u8fdc\u7a0b\u63a7\u5236 Linux \u7c7b\u578b\u7684\u7cfb\u7edf\u7684\u670d\u52a1\u5668\uff0c\u6bd4\u5982 CentOS \u7cfb\u7edf\u7684\u670d\u52a1\u5668\uff0c\u4e00\u822c\u4e0d\u50cf Windows \u670d\u52a1\u5668\u90a3\u6837\uff0c\u4f7f\u7528\u56fe\u5f62\u754c\u9762\u7684\u8fdc\u7a0b\u63a7\u5236\u3002\u6211\u4eec\u9700\u8981\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u8fdc\u7a0b\u8fde\u63a5\u5230\u670d\u52a1\u5668\uff0c\u7136\u540e\u4f7f\u7528\u547d\u4ee4\u53bb\u63a7\u5236\u670d\u52a1\u5668\u3002Windows \u7528\u6237\u53ef\u4ee5\u4f7f\u7528 Putty \uff0cMac \u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u7cfb\u7edf\u81ea\u5e26\u7684\u7ec8\u7aef\u5de5\u5177\u3002\u7136\u540e\u7528 ssh \u547d\u4ee4\uff0c\u8fde\u63a5\u5230\u4f60\u7684\u670d\u52a1\u5668\u3002\u50cf\u8fd9\u6837\uff1a<\/p>\n<p>ssh root@218.244.147.196<br \/>@ \u5de6\u8fb9\u7684 root \u662f\u8fde\u63a5\u65f6\u4f7f\u7528\u7684\u7528\u6237\u7684\u540d\u5b57\uff0c@ \u53f3\u8fb9\u7684\u6570\u5b57\u662f\u4f60\u7684\u670d\u52a1\u5668\u7684 IP \u5730\u5740\u3002\u8fd9\u884c\u547d\u4ee4\u7684\u610f\u601d\u5c31\u662f\uff0c\u4f7f\u7528 root \u7528\u6237\uff0c\u767b\u5f55\u5230 218.244.147.196 \u8fd9\u53f0\u670d\u52a1\u5668\u4e0a\u3002\u56de\u8f66\u4ee5\u540e\uff0c\u4f1a\u63d0\u793a\u4f60\u8f93\u5165 root \u7528\u6237\u7684\u5bc6\u7801\uff08\u8fd9\u4e2a\u5bc6\u7801\u963f\u91cc\u4e91\u4f1a\u53d1\u9001\u5230\u4f60\u624b\u673a\u4e0a\uff09\u3002<\/p>\n<p>\u5b89\u88c5 Nginx<\/p>\n<p>\u60f3\u5728 CentOS \u7cfb\u7edf\u4e0a\u5b89\u88c5 Nginx \uff0c\u4f60\u5f97\u5148\u53bb\u6dfb\u52a0\u4e00\u4e2a\u8d44\u6e90\u5e93\uff0c\u50cf\u8fd9\u6837\uff1a<\/p>\n<p>vim \/etc\/yum.repos.d\/nginx.repo<br \/>\u4f7f\u7528 vim \u547d\u4ee4\u53bb\u6253\u5f00 \/etc\/yum.repos.d\/nginx.repo \uff0c\u5982\u679c nginx.repo \u4e0d\u5b58\u5728\uff0c\u5c31\u4f1a\u53bb\u521b\u5efa\u4e00\u4e2a\u8fd9\u6837\u7684\u6587\u4ef6\uff0c\u6253\u5f00\u4ee5\u540e\u6309\u4e00\u4e0b\u5c0f i \u952e\uff0c\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f\uff0c\u7136\u540e\u590d\u5236\u7c98\u8d34\u4e0b\u9762\u8fd9\u51e0\u884c\u4ee3\u7801\uff0c\u5b8c\u6210\u4ee5\u540e\u6309 esc \u952e\u9000\u51fa\uff0c\u518d\u8f93\u5165 :wq \uff08\u4fdd\u5b58\u5e76\u9000\u51fa\uff09<\/p>\n<p>[nginx]<br \/>name=nginx repo<br \/>baseurl=<a href=\"http:\/\/nginx.org\/packages\/centos\/\">http:\/\/nginx.org\/packages\/centos\/<\/a>$releasever\/$basearch\/<br \/>gpgcheck=0<br \/>enabled=1<br \/>\u5b8c\u6210\u4ee5\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u4f7f\u7528 yum \u547d\u4ee4\u53bb\u5b89\u88c5 nginx \u4e86\uff0c\u50cf\u8fd9\u6837\uff1a<\/p>\n<p>yum install nginx<br \/>\u5b89\u88c5\u597d\u4ee5\u540e\u6d4b\u8bd5\u4e00\u4e0b nginx \u670d\u52a1\uff1a<\/p>\n<p>service nginx status<br \/>\u5e94\u8be5\u4f1a\u8fd4\u56de\uff1a<\/p>\n<p>nginx is stopped \uff08nginx \u5df2\u505c\u6b62\uff09<br \/>\u518d\u6d4b\u8bd5\u4e00\u4e0b nginx \u7684\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<p>nginx -t<br \/>\u5e94\u8be5\u4f1a\u8fd4\u56de\uff1a<\/p>\n<p>nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok<br \/>nginx: configuration file \/etc\/nginx\/nginx.conf test is successful<br \/>&#8230; syntax is ok\uff0c&#8230; test is successful\uff0c\u8bf4\u660e\u914d\u7f6e\u6587\u4ef6\u6ca1\u95ee\u9898\uff0c\u540c\u65f6\u8fd9\u4e2a\u7ed3\u679c\u91cc\u4f60\u53ef\u4ee5\u627e\u5230 nginx \u7684\u914d\u7f6e\u6587\u4ef6 nginx.conf \u6240\u5728\u7684\u4f4d\u7f6e\u3002<\/p>\n<p>\u64cd\u7eb5 nginx \u670d\u52a1<\/p>\n<p>\u64cd\u7eb5\u670d\u52a1\uff0c\u53ef\u4ee5\u4f7f\u7528\u4f7f\u7528 service \u547d\u4ee4\uff0c\u5b83\u53ef\u4ee5\u542f\u52a8\uff08start\uff09\uff0c\u91cd\u542f\uff08restart\uff09\uff0c\u6216\u505c\u6b62\u670d\u52a1\uff08stop\uff09\uff0c\u6bd4\u5982\u8981\u542f\u52a8 nginx \u670d\u52a1\uff1a<\/p>\n<p>service nginx start<br \/>\u670d\u52a1\u542f\u52a8\u4ee5\u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e0a\u4f7f\u7528\u670d\u52a1\u5668\u7684 IP \u5730\u5740\uff0c\u6216\u8005\u6307\u5411\u8fd9\u4e2a\u5730\u5740\u7684\u57df\u540d\u8bbf\u95ee\u670d\u52a1\u5668\u6307\u5b9a\u7684\u76ee\u5f55\u4e86\u3002\u4f60\u4f1a\u770b\u5230\u7c7b\u4f3c\u4e0b\u9762\u7684\u8fd9\u4e9b\u6587\u5b57\u3002<\/p>\n<p>Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com. Thank you for using nginx.<\/p>\n<p>\u914d\u7f6e nginx \u865a\u62df\u4e3b\u673a<\/p>\n<p>\u5b89\u88c5\u5b8c nginx \u4ee5\u540e\uff0c\u7b2c\u4e00\u4ef6\u60f3\u5230\u7684\u4e8b\u5e94\u8be5\u5c31\u662f\u53bb\u521b\u5efa\u865a\u62df\u4e3b\u673a\uff0c\u865a\u62df\u4e3b\u673a\u5141\u8bb8\u6211\u4eec\u5728\u540c\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u591a\u4e2a\u7f51\u7ad9\uff0c\u6211\u4eec\u53ef\u4ee5\u4e3a\u4e0d\u540c\u7684\u57df\u540d\u7ed1\u5b9a\u4e0d\u540c\u7684\u76ee\u5f55\uff0c\u8bbf\u95ee\u8fd9\u4e2a\u57df\u540d\u7684\u65f6\u5019\uff0c\u4f1a\u6253\u5f00\u5bf9\u5e94\u76ee\u5f55\u91cc\u9762\u7684\u4e1c\u897f\u3002\u4e4b\u524d\u4ecb\u7ecd\u8fc7\u4e3a Apache \u670d\u52a1\u5668\u521b\u5efa\u865a\u62df\u4e3b\u673a\uff0c\u4e0b\u9762\u6765\u770b\u4e00\u4e0b\u4e3a nginx \u914d\u7f6e\u865a\u62df\u4e3b\u673a\u3002\u5148\u8fdb\u5165\u5230 nginx \u914d\u7f6e\u6587\u4ef6\u76ee\u5f55\uff1a<\/p>\n<p>cd \/etc\/nginx\/conf.d<br \/>\u590d\u5236\u8fd9\u4e2a\u76ee\u5f55\u91cc\u7684 default.conf \uff0c\u590d\u5236\u4ee5\u540e\u7684\u540d\u5b57\u53ef\u4ee5\u4f7f\u7528\u4f60\u7684\u865a\u62df\u4e3b\u673a\u540d\u5b57\u3002\u6bd4\u5982\u521b\u5efa\u4e00\u4e2a nginx.ninghao.net \u7684\u865a\u62df\u4e3b\u673a\u3002\u590d\u5236\u6587\u4ef6\u53ef\u4ee5\u4f7f\u7528 cp \u547d\u4ee4\uff0c\u50cf\u8fd9\u6837\uff1a<\/p>\n<p>cp default.conf nginx.ninghao.net.conf<br \/>\u518d\u53bb\u7f16\u8f91\u4e00\u4e0b\u8fd9\u4e2a\u590d\u5236\u4ee5\u540e\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528 vim \u547d\u4ee4\uff1a<\/p>\n<p>vim nginx.ninghao.net.conf<br \/>\u4f60\u4f1a\u770b\u5230\u50cf\u8fd9\u6837\u7684\u4ee3\u7801\uff1a<\/p>\n<p>server {<br \/> listen 80;<br \/> server_name localhost;<br \/> #charset koi8-r;<br \/> #access_log&nbsp;&nbsp; \/var\/log\/nginx\/log\/host.access.log main;<br \/> location \/ {<br \/> root \/usr\/share\/nginx\/html;<br \/> index index.html index.htm;<br \/>}<br \/>&#8230;<br \/>}<br \/>server_name \u5c31\u662f\u4e3b\u673a\u540d\uff0c\u4e5f\u5c31\u662f\u8ddf\u8fd9\u4e2a\u865a\u62df\u4e3b\u673a\u7ed1\u5b9a\u5728\u4e00\u5757\u513f\u7684\u57df\u540d\uff0c\u6211\u4e8b\u5148\u628a nginx.ninghao.net \u6307\u5411\u4e86\u670d\u52a1\u5668\uff0c\u8fd9\u4e2a\u865a\u62df\u4e3b\u673a\u5c31\u662f\u4e3a\u5b83\u51c6\u5907\u7684\uff0c\u6240\u4ee5\uff0cserver_name \u540e\u9762\u7684\u4e1c\u897f\u5c31\u662f nginx.ninghao.net \u3002\u7d27\u63a5\u7740 server_name \u4e0b\u9762\u53ef\u4ee5\u662f\u4e00\u4e2a root\uff0c\u5c31\u662f\u8fd9\u4e2a\u865a\u62df\u4e3b\u673a\u7684\u6839\u76ee\u5f55\uff0c\u4e5f\u5c31\u662f\u7f51\u7ad9\u6240\u5728\u7684\u76ee\u5f55\u3002\u6bd4\u5982\u6211\u4eec\u8981\u628a nginx.ninghao.net \u8fd9\u4e2a\u7f51\u7ad9\u7684\u6587\u4ef6\u653e\u5728 \/home\/www\/nginx.ninghao.net \u4e0b\u9762\uff0c\u90a3\u4e48\u8fd9\u4e2a root \u5c31\u662f\u8fd9\u4e2a\u8def\u5f84\u3002<\/p>\n<p>\u7136\u540e\u53bb\u6389 location \/ \u91cc\u9762\u7684 root \u8fd9\u884c\u4ee3\u7801\u3002\u518d\u5728 index \u540e\u9762\u52a0\u4e0a\u4e00\u79cd\u7d22\u5f15\u6587\u4ef6\u540d\uff0c\u4e5f\u5c31\u662f\u9ed8\u8ba4\u6253\u5f00\u7684\u6587\u4ef6\uff0c\u8fd9\u91cc\u8981\u52a0\u4e0a\u4e00\u4e2a index.php \uff0c\u8fd9\u6837\u8bbf\u95ee nginx.ninghao.net \u5c31\u53ef\u4ee5\u76f4\u63a5\u6253\u5f00 root \u76ee\u5f55\u4e0b\u9762\u7684 index.php \u4e86\u3002\u7a0d\u540e\u6211\u4eec\u518d\u53bb\u5b89\u88c5 php \u3002\u4fee\u6539\u4e4b\u540e\uff0c\u770b\u8d77\u6765\u50cf\u8fd9\u6837\uff1a<\/p>\n<p>server {<br \/> listen 80;<br \/> server_name nginx.ninghao.net;<br \/> root \/home\/www\/nginx.ninghao.net;<br \/> #charset koi8-r;<br \/> #access_log \/var\/log\/nginx\/log\/host.access.log main;<\/p>\n<p> location \/ {<br \/> index index.php index.html index.htm;<br \/> }<br \/>&#8230;<br \/>}<br \/>\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u5148\u4fee\u6539\u5230\u8fd9\uff0c\u7a0d\u540e\uff0c\u6211\u4eec\u518d\u56de\u6765\u7ee7\u7eed\u4fee\u6539\u4e00\u4e0b\u5b83\u3002\u4fdd\u5b58\u4e00\u4e0b\uff0c\u6309 esc \uff0c\u8f93\u5165 :wp\uff08\u4fdd\u5b58\u5e76\u9000\u51fa\uff09\u3002\u73b0\u5728\u865a\u62df\u4e3b\u673a\u5e94\u8be5\u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86\u3002\u4e3b\u673a\u7684\u57df\u540d\u662f nginx.ninghao.net\uff0c\u8bbf\u95ee\u5b83\u7684\u65f6\u5019\uff0c\u6253\u5f00\u7684\u662f \/home\/www\/nginx.ninghao.net \u8fd9\u4e2a\u76ee\u5f55\u91cc\u9762\u7684\u4e1c\u897f\uff0c\u4f60\u53ef\u4ee5\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u653e\u70b9\u4e1c\u897f\u3002<\/p>\n<p>\u91cd\u542f nginx \u6216\u8005\u91cd\u65b0\u52a0\u8f7d nginx \u53ef\u4ee5\u8ba9\u914d\u7f6e\u6587\u4ef6\u751f\u6548\u3002<\/p>\n<p>service nginx reload<br \/>\u73b0\u5728\uff0c\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8f93\u5165\u4f60\u4e3a\u865a\u62df\u4e3b\u673a\u8bbe\u7f6e\u7684\u57df\u540d\uff0c\u770b\u770b\u662f\u5426\u80fd\u6253\u5f00\u4f60\u6307\u5b9a\u7684\u76ee\u5f55\u91cc\u7684\u4e1c\u897f\u3002<\/p>\n<p>\u914d\u7f6e php-fpm<\/p>\n<p>\u8981\u8ba9 nginx \u80fd\u591f\u6267\u884c php \u6587\u4ef6\uff0c\u9700\u8981\u53bb\u5b89\u88c5\u4e00\u4e0b php-fpm\uff0c\u5b83\u76f4\u63a5\u5305\u542b\u5728\u4e86 CentOS \u8d44\u6e90\u5e93\u91cc\uff0c\u6240\u4ee5\u76f4\u63a5\u4f7f\u7528 yum \u547d\u4ee4\u53ef\u4ee5\u5b89\u88c5\u5b83\uff1a<\/p>\n<p>yum install php-fpm<br \/>\u5b8c\u6210\u4ee5\u540e\uff0c\u53ef\u4ee5\u68c0\u67e5\u4e00\u4e0b php-fpm \u7684\u8fd0\u884c\u72b6\u6001\uff0c\u4f7f\u7528 service \u547d\u4ee4\uff1a<\/p>\n<p>service php-fpm status<br \/>\u8fd4\u56de\uff1a<\/p>\n<p>php-fpm is stopped\uff08php-fpm \u5df2\u505c\u6b62\uff09<br \/>\u542f\u52a8 php-fpm \u540c\u6837\u53ef\u4ee5\u4f7f\u7528 service \u547d\u4ee4\uff1a<\/p>\n<p>service php-fpm start<br \/>\u8ba9 nginx \u53ef\u4ee5\u6267\u884c php<\/p>\n<p>\u73b0\u5728\u6211\u4eec\u5e94\u8be5\u5c31\u53ef\u4ee5\u8ba9 nginx \u53bb\u6267\u884c php \u4e86\u3002\u4e0d\u8fc7\u4f60\u9700\u8981\u4fee\u6539\u4e00\u4e0b nginx \u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4e4b\u524d\u6211\u4eec\u5728\u914d\u7f6e\u865a\u62df\u4e3b\u673a\u7684\u65f6\u5019\uff0c\u521b\u5efa\u4e86\u4e00\u4e2a nginx.ninghao.net.conf \u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u9700\u8981\u53bb\u4fee\u6539\u4e0b nginx \u7684\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u624d\u80fd\u53bb\u6267\u884c php \u3002\u4f7f\u7528 vim \u547d\u4ee4\u53bb\u7f16\u8f91\u5b83\uff1a<\/p>\n<p>vim \/etc\/nginx\/conf.d\/nginx.ninghao.net.conf<br \/>\u6ce8\u610f\u4f60\u7684\u914d\u7f6e\u6587\u4ef6\u4e0d\u4e00\u5b9a\u53eb nginx.ninghao.net.conf\uff0c\u5e94\u8be5\u662f\u4f60\u81ea\u5df1\u547d\u540d\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u6253\u5f00\u4ee5\u540e\uff0c\u627e\u5230\u4e0b\u9762\u8fd9\u6bb5\u5b57\u6837\u7684\u4ee3\u7801\uff1a<\/p>\n<p>&nbsp;&nbsp;&nbsp; # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000<br \/>&nbsp;&nbsp;&nbsp; #<br \/>&nbsp;&nbsp;&nbsp; #location ~ .php$ {<br \/>&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html;<br \/>&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; fastcgi_pass&nbsp;&nbsp; 127.0.0.1:9000;<br \/>&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; fastcgi_index&nbsp; index.php;<br \/>&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; fastcgi_param&nbsp; SCRIPT_FILENAME&nbsp; \/scripts$fastcgi_script_name;<br \/>&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fastcgi_params;<br \/>&nbsp;&nbsp;&nbsp; #}<br \/>\u8fd9\u662f nginx \u9ed8\u8ba4\u7ed9\u6211\u4eec\u7684\u7528\u6765\u6267\u884c php \u7684\u914d\u7f6e\uff0c\u4ece location \u5f00\u59cb\u53d6\u6d88\u6ce8\u91ca\uff0c\u4f1a\u8ba9\u8fd9\u4e2a\u914d\u7f6e\u751f\u6548\uff0c\u7136\u540e\u6211\u4eec\u8fd8\u5f97\u7b80\u5355\u53bb\u4fee\u6539\u4e00\u4e0b\uff1a<\/p>\n<p>&nbsp;&nbsp;&nbsp; # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000<br \/>&nbsp;&nbsp;&nbsp; #<br \/>&nbsp;&nbsp;&nbsp; location ~ .php$ {<br \/>&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fastcgi_pass&nbsp;&nbsp; 127.0.0.1:9000;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fastcgi_index&nbsp; index.php;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fastcgi_param&nbsp; SCRIPT_FILENAME&nbsp; $document_root$fastcgi_script_name;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fastcgi_params;<br \/>&nbsp;&nbsp;&nbsp; }<br \/>\u6ce8\u610f root \u90a3\u91cc\u4ecd\u7136\u662f\u88ab\u6ce8\u91ca\u6389\u7684\uff0c\u8fd8\u6709 SCRIPT_FILENAME \u540e\u9762\u4fee\u6539\u4e86\u4e00\u4e0b\uff0c\u628a \/scripts \u6362\u6210\u4e86 $document_root \u3002\u4fdd\u5b58\u5e76\u9000\u51fa\u3002\u7136\u540e\u91cd\u65b0\u542f\u52a8 nginx\uff1a<\/p>\n<p>service nginx restart<br \/>\u6d4b\u8bd5\u662f\u5426\u53ef\u4ee5\u6267\u884c php<\/p>\n<p>\u73b0\u5728\uff0c\u6211\u4eec\u5df2\u7ecf\u5b89\u88c5\u4e86 php-fpm\uff0c\u5e76\u4fee\u6539\u4e86 nginx \u7684\u914d\u7f6e\u6587\u4ef6\u8ba9\u5b83\u53ef\u4ee5\u53bb\u6267\u884c php\uff0c\u4e0b\u9762\uff0c\u6211\u4eec\u5f97\u53bb\u6d4b\u8bd5\u4e00\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528 php \u7684 phpinfo(); \u51fd\u6570\uff0c\u65b9\u6cd5\u662f\u5728\u4f60\u7684\u865a\u62df\u4e3b\u673a\u6839\u76ee\u5f55\u4e0b\u9762\uff0c\u521b\u5efa\u4e00\u4e2a php \u6587\u4ef6\uff0c\u547d\u540d\u4e3a phpinfo.php\uff0c\u7136\u540e\u5728\u8fd9\u4e2a\u6587\u4ef6\u91cc\u8f93\u5165\uff1a<\/p>\n<p>&lt;?php phpinfo(); ?&gt;<br \/>\u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51fa\u3002\u5728\u6d4f\u89c8\u5668\u91cc\u6253\u5f00\u521a\u624d\u521b\u5efa\u7684\u8fd9\u4e2a php \u6587\u4ef6\u3002\u6211\u8fd9\u91cc\u5e94\u8be5\u662f <a href=\"http:\/\/nginx.ninghao.net\/phpinfo.php\u3002\u6253\u5f00\u4ee5\u540e\uff0c\u4f60\u5e94\u8be5\u80fd\u770b\u5230\u50cf\u4e0b\u9762\u8fd9\u6837\u7684\u754c\u9762\uff0c\u5982\u679c\u80fd\uff0c\u8bf4\u660e\">http:\/\/nginx.ninghao.net\/phpinfo.php\u3002\u6253\u5f00\u4ee5\u540e\uff0c\u4f60\u5e94\u8be5\u80fd\u770b\u5230\u50cf\u4e0b\u9762\u8fd9\u6837\u7684\u754c\u9762\uff0c\u5982\u679c\u80fd\uff0c\u8bf4\u660e<\/a> nginx \u5df2\u7ecf\u53ef\u4ee5\u6267\u884c php \u4e86\u3002<\/p>\n<p>QQ20140322-4<\/p>\n<p>\u4e3a\u7cfb\u7edf\u6dfb\u52a0\u8d44\u6e90\u5e93<\/p>\n<p>\u524d\u9762\u6211\u4eec\u4f7f\u7528 yum \u547d\u4ee4\u53bb\u5b89\u88c5\u4e86\u4e00\u4e9b\u4e1c\u897f\uff0c\u7528\u8d77\u6765\u5f88\u7b80\u5355\uff0cyum + \u8981\u5b89\u88c5\u7684\u4e1c\u897f + install\u3002\u5b83\u5176\u5b9e\u662f\u4e00\u4e2a\u8d44\u6e90\u5305\u7684\u7ba1\u7406\u5de5\u5177\uff0c\u7528\u5b83\u5b89\u88c5\u4e1c\u897f\u7684\u65f6\u5019\uff0c\u4f1a\u68c0\u67e5\u8fd9\u4e2a\u4e1c\u897f\u6240\u4f9d\u8d56\u7684\u5176\u5b83\u7684\u4e1c\u897f\uff0c\u5728\u5b89\u88c5\u7684\u540c\u65f6\uff0c\u4e5f\u4f1a\u53bb\u5b89\u88c5\u8fd9\u4e9b\u88ab\u4f9d\u8d56\u7684\u4e1c\u897f\u3002CentOS \u672c\u8eab\u5e26\u4e86\u4e00\u4e9b\u8d44\u6e90\u5e93\uff0c\u4f46\u5e76\u4e0d\u662f\u6240\u6709\u7684\u4e1c\u897f\u90fd\u5728\u8fd9\u4e9b\u8d44\u6e90\u5e93\u91cc\uff0c\u6240\u4ee5\uff0c\u6211\u4eec\u53ef\u4ee5\u7ed9\u7cfb\u7edf\u624b\u5de5\u7684\u6dfb\u52a0\u4e00\u4e9b\u8d44\u6e90\u5e93\uff0c\u8fd9\u6837\u4f7f\u7528 yum \u547d\u4ee4\uff0c\u5c31\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u53bb\u5b89\u88c5\u5728\u8d44\u6e90\u5e93\u91cc\u7684\u4e1c\u897f\u4e86\u3002<\/p>\n<p>\u5728\u8fd9\u91cc\u53ef\u4ee5\u627e\u5230\u53ef\u7528\u7684\u8d44\u6e90\u5e93\uff1a<a href=\"http:\/\/iuscommunity.org\/pages\/Repos.html\">http:\/\/iuscommunity.org\/pages\/Repos.html<\/a> \uff0c\u4f60\u8981\u6839\u636e\u81ea\u5df1\u7684\u7cfb\u7edf\u7684\u7248\u672c\u53bb\u4e0b\u8f7d\u5bf9\u5e94\u7684\u8d44\u6e90\u5e93\uff0c\u7136\u540e\u5b89\u88c5\u5728\u7cfb\u7edf\u91cc\u9762\u3002\u67e5\u770b\u7cfb\u7edf\u7684\u7248\u672c\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a<\/p>\n<p>cat \/etc\/redhat-release<br \/>\u6211\u8fd9\u91cc\u4f7f\u7528\u7684\u662f CentOS \u7cfb\u7edf\uff0c\u6240\u4ee5\u8fd4\u56de\u4e86\uff1a<\/p>\n<p>CentOS release 6.3 (Final)<br \/>\u8bf4\u660e\u6211\u7528\u7684\u662f CentOS 6 \uff0c\u5e76\u4e14\u662f 64 \u4f4d\u7684\uff0c\u6253\u5f00\u4e0a\u9762\u7684\u8d44\u6e90\u5e93\u5730\u5740\uff0c\u627e\u5230 Release Packages \uff0c\u7136\u540e\u627e\u5230 CentOS 6 \u8fd9\u4e2a\u533a\u57df\u4e0b\u9762\u7684\u94fe\u63a5\uff0c\u6211\u4eec\u7528\u8fd9\u4e2a epel \u8d44\u6e90\u5e93\u3002\u6253\u5f00\u8fd9\u4e2a\u5730\u5740\u4ee5\u540e\uff0c\u590d\u5236 Packages \u4e0b\u9762\u7684\u94fe\u63a5 epel-release-6-5.noarch \u3002\u7136\u540e\u56de\u5230\u6211\u4eec\u8fde\u63a5\u5230\u670d\u52a1\u5668\u7684\u7ec8\u7aef\u5de5\u5177\uff0cWindows \u7528\u6237\u5e94\u8be5\u7528\u7684\u662f putty \u3002\u7528 cd \u547d\u4ee4\u8fdb\u5165\u5230\u4e00\u4e2a\u76ee\u5f55\u91cc\u9762\uff0c\u6bd4\u5982\u7528\u6237\u7684\u6839\u76ee\u5f55\uff0c\u53ef\u4ee5\u8fd9\u6837\uff1a<\/p>\n<p>cd ~<br \/>\u7136\u540e\u4f7f\u7528 wget \u547d\u4ee4\uff0c\u628a\u521a\u624d\u590d\u5236\u7684\u94fe\u63a5\u91cc\u7684\u8d44\u6e90\u5e93\u4e0b\u8f7d\u4e0b\u6765\uff1a<\/p>\n<p>wget <a href=\"http:\/\/dl.iuscommunity.org\/pub\/ius\/stable\/CentOS\/6\/x86_64\/epel-release-6-5.noarch.rpm\">http:\/\/dl.iuscommunity.org\/pub\/ius\/stable\/CentOS\/6\/x86_64\/epel-release-6-5.noarch.rpm<\/a><br \/>\u7528 ls \u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u4e00\u4e0b\u5f53\u524d\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u9762\u7684\u4e1c\u897f\uff0c\u4f60\u5e94\u8be5\u53ef\u4ee5\u770b\u5230 epel-release-6-5.noarch.rpm\uff08\u4e5f\u6216\u8005\u662f\u4f60\u9009\u62e9\u8981\u4e0b\u8f7d\u7684\u8d44\u6e90\u5e93\uff09\u3002\u4e0b\u8f7d\u597d\u4ee5\u540e\uff0c\u53bb\u5b89\u88c5\u4e00\u4e0b\uff1a<\/p>\n<p>rpm -ivh epel-release-6-5.noarch.rpm<br \/>\u67e5\u770b\u4e00\u4e0b\u7cfb\u7edf\u91cc\u9762\u7684\u8d44\u6e90\u5e93\uff1a<\/p>\n<p>yum repolist<br \/>\u4f60\u4f1a\u770b\u5230 epel \u8fd9\u4e2a\u8d44\u6e90\u5e93\uff0c\u5b83\u5c31\u662f\u6211\u4eec\u521a\u624d\u5b89\u88c5\u7684\u3002\u7cfb\u7edf\u91cc\u7684\u8d44\u6e90\u5e93\u5730\u5740\u662f\u5728\uff1a\/etc\/yum.repos.d\uff0c\u5728\u8fd9\u91cc\uff0c\u4f60\u540c\u6837\u53ef\u4ee5\u627e\u5230 epel.repo\u3002\u8fd9\u6837\u6211\u4eec\u5c31\u53ef\u4ee5\u4f7f\u7528 yum \u547d\u4ee4\u53bb\u5b89\u88c5\u66f4\u591a\u7684\u4e1c\u897f\u4e86\u3002<\/p>\n<p>\u5b89\u88c5 mysql<\/p>\n<p>mysql \u53ef\u4ee5\u7ba1\u7406\u7f51\u7ad9\u7528\u5230\u7684\u6570\u636e\u5e93\uff0cWordPress \u548c Drupal \u4e5f\u90fd\u652f\u6301 mysql \u6570\u636e\u5e93\u3002\u6240\u4ee5\u6211\u4eec\u7684 Web \u8fd0\u884c\u73af\u5883\u91cc\uff0c\u9700\u8981\u5b89\u88c5\u4e00\u4e2a mysql \u3002\u4e4b\u524d\u6211\u4eec\u5df2\u7ecf\u6dfb\u52a0\u4e86\u8d44\u6e90\u5e93\uff0c\u6240\u4ee5\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 yum \u547d\u4ee4\u53bb\u5b89\u88c5&nbsp; mysql \uff1a<\/p>\n<p>yum install mysql-server<br \/>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f7f\u7528 service \u547d\u4ee4\u542f\u52a8 mysql \u670d\u52a1\uff1a<\/p>\n<p>service mysqld start<br \/>\u7136\u540e\u6211\u4eec\u9700\u8981\u7b80\u5355\u914d\u7f6e\u4e00\u4e0b mysql \uff0c\u9ed8\u8ba4\u5b89\u88c5\u4ee5\u540e mysql \u7684 root \u7528\u6237\u662f\u6ca1\u6709\u5bc6\u7801\u7684\uff0c\u5bf9\u4e8e\u751f\u4ea7\u73af\u5883\u6765\u8bf4\uff0c\u8fd9\u80af\u5b9a\u662f\u4e0d\u884c\u7684\uff0c\u53e6\u5916\u8fd8\u6709\u4e00\u4e9b\u5b89\u5168\u76f8\u5173\u7684\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u8fd9\u884c\u547d\u4ee4\u53bb\u914d\u7f6e\u4e00\u4e0b\uff0c\u5b83\u662f\u4e00\u4e2a\u5411\u5bfc\uff0c\u95ee\u4f60\u4e00\u4e9b\u95ee\u9898\uff0c\u4f60\u8981\u7ed9\u51fa\u7b54\u6848\uff0c\u6bd4\u5982\u662f\u5426\u8981\u8bbe\u7f6e root \u7528\u6237\u7684\u5bc6\u7801\uff0c \u5bc6\u7801\u662f\u4ec0\u4e48\u7b49\u7b49\u3002<\/p>\n<p>mysql_secure_installation<br \/>Enter current password for root (enter for none):<br \/>\u89e3\u91ca\uff1a\u8f93\u5165\u5f53\u524d root \u7528\u6237\u5bc6\u7801\uff0c\u9ed8\u8ba4\u4e3a\u7a7a\uff0c\u76f4\u63a5\u56de\u8f66\u3002<br \/>Set root password? [Y\/n]&nbsp; y<br \/>\u89e3\u91ca\uff1a\u8981\u8bbe\u7f6e root \u5bc6\u7801\u5417\uff1f\u8f93\u5165 y \u8868\u793a\u613f\u610f\u3002<br \/>Remove anonymous users? [Y\/n]&nbsp; y<br \/>\u89e3\u91ca\uff1a\u8981\u79fb\u9664\u6389\u533f\u540d\u7528\u6237\u5417\uff1f\u8f93\u5165 y \u8868\u793a\u613f\u610f\u3002<br \/>Disallow root login remotely? [Y\/n]&nbsp; y<br \/>\u89e3\u91ca\uff1a\u4e0d\u60f3\u8ba9 root \u8fdc\u7a0b\u767b\u9646\u5417\uff1f\u8f93\u5165 y \u8868\u793a\u613f\u610f\u3002<br \/>Remove test database and access to it? [Y\/n]&nbsp; y<br \/>\u89e3\u91ca\uff1a\u8981\u53bb\u6389 test \u6570\u636e\u5e93\u5417\uff1f\u8f93\u5165 y \u8868\u793a\u613f\u610f\u3002<br \/>Reload privilege tables now? [Y\/n]&nbsp; y<br \/>\u89e3\u91ca\uff1a\u60f3\u8981\u91cd\u65b0\u52a0\u8f7d\u6743\u9650\u5417\uff1f\u8f93\u5165 y \u8868\u793a\u613f\u610f\u3002<\/p>\n<p>\u5b89\u88c5 php \u6269\u5c55<\/p>\n<p>\u73b0\u5728\uff0c\u6211\u4eec\u6709\u4e86\u53ef\u4ee5\u63d0\u4f9b web \u670d\u52a1\u7684 nginx \uff0c\u5e76\u4e14\u5b89\u88c5\u4e86 php-fpm \uff0c\u914d\u7f6e\u4e86 nginx \u53ef\u4ee5\u8ba9\u5b83\u53bb\u6267\u884c php \uff0c\u4e5f\u5b89\u88c5\u4e86\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u3002\u4e0d\u8fc7\u5728\u8fd0\u884c\u771f\u6b63\u7684\u7f51\u7ad9\u7684\u65f6\u5019\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u4e3a php \u5b89\u88c5\u4e00\u4e9b\u989d\u5916\u7684\u6269\u5c55\uff0c\u6bd4\u5982 \u5904\u7406 mysql \u6570\u636e\u5e93\u7684 mysql \u6269\u5c55\uff0c\u7f13\u5b58\u529f\u80fd\u7684 apc \u6269\u5c55\uff0c\u5904\u7406\u56fe\u50cf\u7684 gd \u6269\u5c55\u7b49\u7b49\u3002\u5b89\u88c5\u5b83\u4eec\u540c\u6837\u53ef\u4ee5\u4f7f\u7528 yum \u547d\u4ee4\u3002<\/p>\n<p>yum install php-pecl-apc php-mysql php-gd php-mcrypt php-pear php-mbstring php-xmlrpc php-dom<br \/>\u4e0a\u9762\u5b89\u88c5\u4e86\u4e00\u4e9b php \u7684\u6269\u5c55\uff0c\u5982\u679c\u4f60\u53d1\u73b0\u5728\u5b89\u88c5\u7f51\u7ad9\u7684\u65f6\u5019\u63d0\u793a\u9700\u8981\u5b89\u88c5\u5176\u5b83\u7684\u6269\u5c55\uff0c\u540c\u6837\u53ef\u4ee5\u4f7f\u7528 yum \u547d\u4ee4\u53bb\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u4ee5\u540e\uff0c\u9700\u8981\u91cd\u542f\u4e00\u4e0b php-fpm \uff1a<\/p>\n<p>service php-fpm restart<br \/>\u76ee\u5f55\u4e0e\u6587\u4ef6\u7684\u6743\u9650\u95ee\u9898<\/p>\n<p>\u7f51\u7ad9\u4e0a\u9762\u6709\u4e9b\u76ee\u5f55\u6216\u6587\u4ef6\u9700\u8981\u6709\u5199\u5165\u6743\u9650\uff0c\u8fd9\u6837\u4f60\u5f97\u4e3a\u8fd9\u4e9b\u76ee\u5f55\u548c\u6587\u4ef6\u5206\u914d\u5408\u9002\u7684\u6743\u9650\uff0c\u4e00\u822c\u53ef\u4ee5\u628a\u5b83\u4eec\u7684\u62e5\u6709\u8005\u8bbe\u7f6e\u6210 php \u548c nginx \u4f7f\u7528\u7684\u7528\u6237\uff0c\u9ed8\u8ba4 nginx \u7684\u7528\u6237\u5c31\u662f nginx \uff0c\u800c php-fpm \u4f7f\u7528\u7684\u7528\u6237\u9ed8\u8ba4\u662f apache\u3002\u6211\u4eec\u53ef\u4ee5\u628a\u5b83\u4eec\u6539\u6210\u4e00\u4e2a\u7edf\u4e00\u7684\u7528\u6237\uff0c\u53ef\u4ee5\u4fee\u6539 php-fpm \u7684\u7528\u6237\u4e3a nginx \u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u53bb\u67e5\u770b\u4e00\u4e0b nginx \u548c php-fpm \u6240\u4f7f\u7528\u7684\u7528\u6237\u540d\uff1a<\/p>\n<p>ps aux|grep php<br \/>ps aux|grep nginx<br \/>\u4fee\u6539\u6240\u4f7f\u7528\u7684\u7528\u6237\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528 nginx \u548c php-fpm \u7684\u914d\u7f6e\u6587\u4ef6\uff0cnginx \u7684\u914d\u7f6e\u6587\u4ef6\u662f\uff1a&nbsp; \/etc\/nginx\/nginx.conf \uff0cphp-fpm \u7684\u914d\u7f6e\u6587\u4ef6\u662f\uff1a\/etc\/php-fpm.conf\uff0c\u8fd8\u6709\u5728 \/etc\/php-fpm.d\/* \u8fd9\u4e2a\u76ee\u5f55\u91cc\u7684\u6240\u6709\u6587\u4ef6\u90fd\u662f php-fpm \u7684\u914d\u7f6e\u6587\u4ef6\u3002\u9ed8\u8ba4\u8fd9\u4e2a\u76ee\u5f55\u91cc\u6709\u4e00\u4e2a www.conf \uff0c\u4f60\u53ef\u4ee5\u7f16\u8f91\u8fd9\u4e2a\u6587\u4ef6\u6765\u4fee\u6539 php-fpm \u6240\u4f7f\u7528\u7684\u7528\u6237\u540d\u79f0\u3002\u4f7f\u7528 vim \u547d\u4ee4\uff1a<\/p>\n<p>vim \/etc\/php-fpm.d\/www.conf<br \/>\u6253\u5f00\u6587\u4ef6\u4ee5\u540e\u4f60\u53ef\u4ee5\u641c\u7d22\u4e0b\u5173\u952e\u8bcd user \u6216 apache\uff0c\u8f93\u5165 :\/user \u6216 :\/apache \uff0c\u4f1a\u641c\u7d22\u5230\u7ed3\u679c\uff0c\u6309\u5c0f n \u53ef\u4ee5\u7ee7\u7eed\u5411\u4e0b\u67e5\u627e\uff0c\u6309\u5927 N \u53ef\u4ee5\u5411\u4e0a\u67e5\u627e\u3002\u76f4\u5230\u4f60\u770b\u5230\uff1a<\/p>\n<p>user = apache<br \/>\u628a\u5b83\u4fee\u6539\u6210\uff1a<\/p>\n<p>user=nginx<br \/>esc \u9000\u51fa\uff0c\u518d\u8f93\u5165 :wq \uff0c\u91cd\u542f\u4e0b php-fpm\uff0c\u8fd9\u6837\u6211\u4eec\u7684 nginx \u670d\u52a1\u5668\u8fd8\u6709 php-fpm \u4f1a\u4f7f\u7528\u540c\u4e00\u4e2a\u7528\u6237\uff1anginx\uff0c\u4f60\u53ef\u4ee5\u628a\u8981\u53ef\u4ee5\u6709\u5199\u5165\u6743\u9650\u7684\u76ee\u5f55\u4e0e\u6587\u4ef6\u7684\u62e5\u6709\u8005\u4fee\u6539\u6210 nginx \u5c31\u884c\u4e86\u3002\u53ef\u4ee5\u4f7f\u7528 chown \u547d\u4ee4\uff1a<\/p>\n<p>chown -R nginx \u76ee\u5f55\u540d\/\u6587\u4ef6\u540d<br \/>\u603b\u7ed3<\/p>\n<p>\u597d\u6765\uff0c\u73b0\u5728\u6211\u4eec\u5c31\u5df2\u7ecf\u62e5\u6709\u4e00\u53f0 LNMP \u73af\u5883\u7684\u670d\u52a1\u5668\u4e86\u3002\u8fd9\u4e2a\u64cd\u4f5c\u624b\u518c\u91cc\u63d0\u4f9b\u5230\u7684\u76f8\u5173\u914d\u7f6e\uff0c\u8fd8\u6709\u5f88\u591a\u53ef\u4ee5\u4f18\u5316\u4e00\u4e0b\uff0c\u6bd4\u5982 nginx \u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u53ef\u4ee5\u9488\u5bf9 Drupal \u6765\u505a\u4e00\u4e9b\u4f18\u5316\u3002\u5728\u540e\u7eed\u7684\u6587\u7ae0\u91cc\u9762\uff0c\u6211\u4f1a\u518d\u8be6\u7ec6\u7684\u53bb\u89e3\u91ca\u4e00\u4e0b\u8fd9\u4e9b\u914d\u7f6e\u6587\u4ef6\u7684\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u963f\u91cc\u4e91\u7684\u4e91\u670d\u52a1\u5668\uff08ECS\uff09\u53ef\u4ee5\u9009\u62e9\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\uff0c\u6253\u7b97\u7528\u5b83\u8fd0\u884c Drupal \u6216\u8005 WordPress \uff0c\u4f60\u6700\u597d &hellip; <a href=\"https:\/\/www.fh1986.com\/index.php\/archives\/470.html\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u5728\u963f\u91cc\u4e91 CentOS \u670d\u52a1\u5668\uff08ECS\uff09\u4e0a\u642d\u5efa nginx + mysql + php-fpm \u73af\u5883<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,2],"tags":[],"_links":{"self":[{"href":"https:\/\/www.fh1986.com\/index.php\/wp-json\/wp\/v2\/posts\/470"}],"collection":[{"href":"https:\/\/www.fh1986.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fh1986.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fh1986.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fh1986.com\/index.php\/wp-json\/wp\/v2\/comments?post=470"}],"version-history":[{"count":0,"href":"https:\/\/www.fh1986.com\/index.php\/wp-json\/wp\/v2\/posts\/470\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fh1986.com\/index.php\/wp-json\/wp\/v2\/media?parent=470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fh1986.com\/index.php\/wp-json\/wp\/v2\/categories?post=470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fh1986.com\/index.php\/wp-json\/wp\/v2\/tags?post=470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}