<br />
<b>Warning</b>:  Undefined array key "HTTP_ACCEPT_LANGUAGE" in <b>/www/wwwroot/01xj.net/wp-content/plugins/wp-ue/main.php</b> on line <b>13</b><br />
{"id":82,"date":"2011-09-13T14:34:49","date_gmt":"2011-09-13T14:34:49","guid":{"rendered":"http:\/\/www.01xj.net\/0\/?p=82"},"modified":"2011-09-13T14:36:31","modified_gmt":"2011-09-13T14:36:31","slug":"freebsd%e4%b8%8bnginx%e5%b9%b6%e6%94%af%e6%8c%81php%e9%85%8d%e7%bd%ae%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.01xj.net\/?p=82","title":{"rendered":"FreeBSD\u4e0bnginx\u5e76\u652f\u6301php\u914d\u7f6e\u8be6\u89e3"},"content":{"rendered":"<p>Nginx (&#8220;engine x&#8221;) \u662f\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684 HTTP \u548c\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u4e5f\u662f\u4e00\u4e2a IMAP\/POP3\/SMTP \u4ee3\u7406\u670d\u52a1\u5668\u3002 Nginx \u662f\u7531 Igor Sysoev \u4e3a\u4fc4\u7f57\u65af\u8bbf\u95ee\u91cf\u7b2c\u4e8c\u7684 Rambler.ru \u7ad9\u70b9\u5f00\u53d1\u7684\uff0c\u5b83\u5df2\u7ecf\u5728\u8be5\u7ad9\u70b9\u8fd0\u884c\u8d85\u8fc7\u4e24\u5e74\u534a\u4e86\u3002Igor \u5c06\u6e90\u4ee3\u7801\u4ee5\u7c7bBSD\u8bb8\u53ef\u8bc1\u7684\u5f62\u5f0f\u53d1\u5e03\u3002<\/p>\n<p>Nginx \u8d85\u8d8a Apache \u7684\u9ad8\u6027\u80fd\u548c\u7a33\u5b9a\u6027\uff0c\u4f7f\u5f97\u56fd\u5185\u4f7f\u7528 Nginx \u4f5c\u4e3a Web \u670d\u52a1\u5668\u7684\u7f51\u7ad9\u4e5f\u8d8a\u6765\u8d8a\u591a\uff0c\u5176\u4e2d\u5305\u62ec\u65b0\u6d6a\u535a\u5ba2\u3001\u65b0\u6d6a\u64ad\u5ba2\u3001\u7f51\u6613\u65b0\u95fb\u7b49\u95e8\u6237\u7f51\u7ad9\u9891\u9053\uff0c\u516d\u95f4\u623f\u300156.com\u7b49\u89c6\u9891\u5206\u4eab\u7f51\u7ad9\uff0cDiscuz!\u5b98\u65b9\u8bba\u575b\u3001\u6c34\u6728\u793e\u533a \u7b49\u77e5\u540d\u8bba\u575b\uff0c\u8c46\u74e3\u3001YUPOO\u76f8\u518c\u3001\u6d77\u5185SNS\u3001\u8fc5\u96f7\u5728\u7ebf\u7b49\u65b0\u5174Web 2.0\u7f51\u7ad9\u3002<\/p>\n<p>\u73b0\u5728\u5c31\u5c31\u6765\u5b66\u4e60\u5728freebsd7.0\u4e2d\u5b89\u88c5\u53ca\u914d\u7f6enginx\uff0c\u8fd9\u91cc\u53ea\u662f\u628aapache\u6362\u6210nginx\uff0c\u5176\u4ed6php\u7b49\u90fd\u4e0d\u53d8\uff1a<\/p>\n<p><strong>\u4e00\u3001\u5b89\u88c5nginx 0.6.33<\/strong><\/p>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\">[root@bsd01 ~]#cd \/usr\/ports<br \/>\n[root@bsd01 ports]#make search key=^nginxPort: nginx-0.6.32_1<br \/>\nPath: \/usr\/ports\/www\/nginx<br \/>\nInfo: Robust and small WWW server<\/p>\n<p>Port: nginx-devel-0.7.21<br \/>\nPath: \/usr\/ports\/www\/nginx-devel<br \/>\nInfo: Robust and small WWW server<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>freebsd\u4e0a\u67092\u4e2a\uff0c\u4e00\u4e2a0.6.33\uff08\u8fd9\u91cc\u67e5\u8be2\u663e\u793anginx-0.6.32_1\uff09\u662f\u7a33\u5b9a\u7248\uff0c0.7.21\u662f\u6700\u65b0\u7684\u5f00\u53d1\u7248\uff0c\u6240\u4ee5\u8fd9\u91cc\u5b89\u88c50.6.33\u3002<\/p>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\">[root@bsd01 ports]#cd www\/nginx<br \/>\n[root@bsd01 nginx]#make install clean<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u63a5\u7740\u51fa\u6765\u201cmake config\u201d\u7684\u83dc\u5355\uff0c\u9009\u62e9\u9700\u8981\u7684\u7ec4\u4ef6\u5373\u53ef\uff1a<\/p>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\">Options for nginx 0.6.33<br \/>\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<br \/>\n[ ] DEBUG Enable nginx debugging<br \/>\n[ ] GOOGLE_PERFTOOLS Enable google perftools module<br \/>\n[X] HTTP_MODULE Enable HTTP module<br \/>\n[X] HTTP_ADDITION_MODULE Enable http_addition module<br \/>\n[X] HTTP_DAV_MODULE Enable http_webdav module<br \/>\n[X] HTTP_FLV_MODULE Enable http_flv module<br \/>\n[X] HTTP_PERL_MODULE Enable http_perl module<br \/>\n[X] HTTP_REALIP_MODULE Enable http_realip module<br \/>\n[X] HTTP_REWRITE_MODULE Enable http_rewrite module<br \/>\n[X] HTTP_SSL_MODULE Enable http_ssl module<br \/>\n[X] HTTP_STATUS_MODULE Enable http_stub_status module<br \/>\n[X] HTTP_SUB_MODULE Enable http_sub module<br \/>\n[ ] MAIL_MODULE Enable IMAP4\/POP3\/SMTP proxy module<br \/>\n[ ] MAIL_IMAP_MODULE Enable IMAP4 proxy module<br \/>\n[ ] MAIL_POP3_MODULE Enable POP3 proxy module<br \/>\n[ ] MAIL_SMTP_MODULE Enable SMTP proxy module<br \/>\n[ ] MAIL_SSL_MODULE Enable mail_ssl module<br \/>\n[X] WWW Enable html sample files<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>tab\u5230OK\uff0c\u5f00\u59cb\u5b89\u88c5\u3002<\/p>\n<p>\u5b89\u88c5\u5b8c\u540e\uff0c\u914d\u7f6e\u76ee\u5f55\u4f4d\u4e8e\/usr\/local\/etc\/nginx\u5185\uff0c\u8fd9\u4e2a\u662ffreebsd\u7684\u89c4\u5219\u4e86\uff0c\u95ed\u7740\u773c\u775b\u90fd\u77e5\u9053\u3002\u4e3b\u914d\u7f6e\u6587\u4ef6\u5c31\u662fnginx.conf\u3002<\/p>\n<p>\u7531\u4e8e\u524d\u9762\u5df2\u7ecf\u5b89\u88c5\u4e86php\u8fd9\u4e9b\uff0c\u8fd9\u91cc\u5c31\u4e0d\u7528\u5b89\u88c5\u4e86\uff0c\u53ea\u8981\u628aphp\u914d\u7f6e\u5230nginx\u4e0a\u5c31\u53ef\u4ee5\u4e86\u3002\u4e3a\u4e86\u6d4b\u8bd5\uff0c\u6211\u4e5f\u628aapache\u5148\u505c\u4e86\uff0c\u4ee5\u514d\u51b2\u7a81\u3002<\/p>\n<p>nginx\u76ee\u524d\u8fd8\u4e0d\u80fd\u76f4\u63a5\u652f\u6301php\uff0c\u5fc5\u987b\u5148\u501f\u52a9\u4e8efastcgi\u6765\u9a71\u52a8php\u3002\u73b0\u5728fastcgi\u8f83\u597d\u7684\u529e\u6cd5\u67092\u79cd\uff0c\u4e00\u4e2a\u662fspawn- fcgi\uff0c\u53e6\u5916\u4e00\u4e2a\u5c31\u662fphp-fpm\uff0c\u4e00\u822c\u6765\u8bf4\u53ef\u80fdphp-fpm\u66f4\u5f3a\u5927\u4e00\u70b9\uff0c\u4f46\u662fspawn-fcgi\u4e5f\u6709\u76f8\u5f53\u6570\u91cf\u7684\u4eba\u5728\u4f7f\u7528\uff0c\u6240\u4ee5\u5c31\u770b\u81ea\u5df1\u4e60\u60ef\u4e86\u3002 \u6240\u4ee5\u62112\u4e2a\u90fd\u505a\u4e86\u4e00\u904d\u3002<\/p>\n<p><strong>\u4e8c\u3001\u4f7f\u7528spawn-fcgi\u652f\u6301php<\/strong><\/p>\n<p>\u25bc\u9996\u5148\u9700\u8981\u5b89\u88c5lighttpd\uff0c\u4ee5\u53d6\u5f97spawn-cgi<\/p>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\">[root@bsd01 ~]#cd \/usr\/ports\/www\/lighttpd<br \/>\n[root@bsd01 lighttpd]#make install clean<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u25bc\u7f16\u8f91nginx.con\u6587\u4ef6\uff1a<\/p>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\">[root@bsd01 ~]#vi \/usr\/local\/etc\/nginx\/nginx.conf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\">user nobody;<br \/>\nuser www;<br \/>\nlocation \/ {<br \/>\nroot \/usr\/local\/www\/nginx;<br \/>\nindex index.html index.htm;<br \/>\n}location \/ {<br \/>\nroot \/data1\/www;<br \/>\nindex index.html index.htm index.php;<br \/>\n}<\/p>\n<p>#location ~ \\.php$ {<br \/>\n# root html;<br \/>\n# fastcgi_pass 127.0.0.1:9000;<br \/>\n# fastcgi_index index.php;<br \/>\n# fastcgi_param SCRIPT_FILENAME \/scripts$fastcgi_script_name;<br \/>\n# include fastcgi_params;<br \/>\n#}<\/p>\n<p>location ~ \\.php$ {<br \/>\nfastcgi_pass 127.0.0.1:9000;<br \/>\nfastcgi_index index.php;<br \/>\nfastcgi_param SCRIPT_FILENAME \/data1\/www$fastcgi_script_name;<br \/>\ninclude fastcgi_params;<br \/>\n}<\/p>\n<p>#location ~ \/\\.ht {<br \/>\n# deny all;<br \/>\n#}<\/p>\n<p>location ~ \/\\.ht {<br \/>\ndeny all;<br \/>\n}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u25bc\u73b0\u5728\u7528spawn-fcgi\u542f\u52a8php-cgi\u8fdb\u7a0b\uff1a<\/p>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\">[root@bsd01 lighttpd]#spawn-fcgi -a 127.0.0.1 -p 9000 -u www -C 3 -f \/usr\/local\/bin\/php-cgi<br \/>\nKspawn-fcgi.c.206: child spawned successfully: PID: 25354<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u201c-C 3\u201d\u5c31\u662f\u542f\u52a83\u4e2aphp-cgi\u8fdb\u7a0b\u5427\uff0c\u4f46\u662f\u597d\u50cf\u5b9e\u9645\u4f1a\u591a1\uff0c2\u4e2a\u3002<\/p>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\">[root@bsd01 lighttpd]#ps -aux | grep php-cgi<br \/>\nwww 25354 24.6 2.5 30956 12924 ?? Ss 3:33AM 0:00.41 \/usr\/local\/bin\/php-cgi<br \/>\nwww 25355 0.0 2.5 30956 12964 ?? S 3:33AM 0:00.00 \/usr\/local\/bin\/php-cgiwww 25356 0.0 2.5 30956 12964 ?? S 3:33AM 0:00.00 \/usr\/local\/bin\/php-cgi<br \/>\nwww 25357 0.0 2.5 30956 12964 ?? S 3:33AM 0:00.00 \/usr\/local\/bin\/php-cgi<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u25bc\u7136\u540e\u542f\u52a8nginx\u5373\u53ef\uff1a<\/p>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\">[root@bsd01 ~]#nginx<br \/>\n[root@bsd01 ~]#pgrep nginx<br \/>\nR25436<br \/>\nf25435<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u73b0\u5728\u6765\u8bbf\u95ee\u6211\u4eec\u7684web\u9875\u9762\uff0c\u8bf4\u660enginx\u5df2\u7ecf\u6210\u529f\u914d\u7f6e\uff1a<\/p>\n<p align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/upload.chinaz.com\/upimg\/userup\/1002\/261HZ21532_lit.jpg\" alt=\"\" width=\"510\" height=\"485\" border=\"0\" \/><\/p>\n<p><strong>\u4e09\u3001\u4f7f\u7528php-fpm\u652f\u6301php<\/strong><\/p>\n<p>\u25bc\u5148\u4e0b\u8f7dphp-fpm\u63d2\u4ef6\uff0c\u7136\u540e\u89e3\u538b\u5230\/usr\/ports\/lang\u76ee\u5f55\u3002\u7136\u540e\u5c31\u53ef\u4ee5\u4f7f\u7528ports\u6765\u5b89\u88c5\u5b83\u4e86\u3002<\/p>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\">[root@bsd01 ~]#fetchhttp:\/\/alamster.googlepages.com\/php5-fpm.5.2.6.tar.gz<br \/>\nphp5-fpm.5.2.6.tar.gz 100% of 11 kB 140 kBps<br \/>\n[root@bsd01 ~]#tar zxf php5-fpm.5.2.6.tar.gz -C \/usr\/ports\/lang<br \/>\n[root@bsd01 ~]#cd \/usr\/ports\/lang\/php5-fpm\/<br \/>\n[root@bsd01 php5-fpm]#make install<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7136\u540e\u4f1a\u51fa\u73b0\u201cmake config\u201d\u7684\u754c\u9762\uff0c\u9009\u62e9\u9700\u8981\u7684\u7ec4\u4ef6\u5373\u53ef\uff1a<\/p>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\">Options for php5-fpm 5.2.6_1<br \/>\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<br \/>\n[X] CLI Build CLI version<br \/>\n[ ] DEBUG Enable debug<br \/>\n[X] SUHOSIN Enable Suhosin protection system (not for jails)<br \/>\n[X] MULTIBYTE Enable zend multibyte support<br \/>\n[ ] IPV6 Enable ipv6 support<br \/>\n[ ] MAILHEAD Enable mail header patch<br \/>\n[X] PATHINFO Enable path-info-check support<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7136\u540etab\u5230OK\u5f00\u59cb\u5b89\u88c5\u3002<\/p>\n<p>\u3010\u6ce8\u610f\uff1a\u3011\u5982\u679c\u7f16\u8bd1\u51fa\u9519\uff0c\u63d0\u793a&#8221;cannot install: unknown AUTOCONF version: 261.&#8221;<br \/>\n\u5219\u9700\u8981\u7f16\u8f91\/usr\/ports\/lang\/php5-fpm\/\u4e2d\u7684Makefile\u6587\u4ef6\uff0c\u8bbe\u7f6e\u4f60\u7cfb\u7edf\u6b63\u786e\u7684autoconf\u7248\u672c\u3002<br \/>\n\u5148 \u4f7f\u7528\u201cpkg_info | grep autoconf\u201d\u547d\u4ee4\u67e5\u770b\u7cfb\u7edf\u7684autoconf\u7684\u7248\u672c\uff0c\u6bd4\u5982\u6211\u7684\u662fautoconf 2.62\uff0c\u5219\u628a&#8221;USE_AUTOTOOLS=\u00a0\u00a0 autoconf:261&#8243;\u4fee\u6539\u4e3a&#8221;USE_AUTOTOOLS=\u00a0\u00a0 autoconf:262&#8243;\u5373\u53ef\u3002<\/p>\n<p>\u25bc\u7136\u540e\u590d\u5236\u4e00\u4e0bphp-fpm\u7684\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\">[root@bsd01 ~]#cd \/usr\/local\/etc<br \/>\n[root@bsd01 etc]#cp php-fpm.conf.dist php-fpm.conf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7f16\u8f91php-pfm.conf\u6587\u4ef6\uff0c\u8ba9php-cgi\u4ee5www\u7528\u6237\u542f\u52a8\uff08\u4e0enginx\u4e00\u6837\uff09\uff1a<\/p>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\">[root@bsd01 etc]#chmod u+w php-fpm.conf<br \/>\n[root@bsd01 etc]#vi php-fpm.confUnix user of processes<br \/>\n&lt;!&#8211; &lt;value name=&#8221;user&#8221;&gt;nobody&lt;\/value&gt; &#8211;&gt;<\/p>\n<p>Unix group of processes<br \/>\n&lt;!&#8211; &lt;value name=&#8221;group&#8221;&gt;nobody&lt;\/value&gt; &#8211;&gt;<\/p>\n<p>Unix user of processes<br \/>\n&lt;value name=&#8221;user&#8221;&gt;www&lt;\/value&gt;<\/p>\n<p>Unix group of processes<br \/>\n&lt;value name=&#8221;group&#8221;&gt;www&lt;\/value&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5c0f\u63d0\u793a:\u8bb0\u5f97\/usr\/local\/etc\/nginx\/nginx.con\u6587\u4ef6\u7684\u914d\u7f6e\u8ddf\u4e0a\u9762spawn-fcgi\u65b9\u5f0f\u7684\u4e00\u6837\uff0c\u8fd9\u91cc\u5c31\u4e0d\u518d\u8bf4\u4e86\u3002<\/p>\n<p>\u7136\u540e\u5c31\u53ef\u4ee5\u542f\u52a8php-fpm\u548cnginxl\u4e86\uff1a<\/p>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\">[root@bsd01 etc]#\/usr\/local\/etc\/rc.d\/php-fpm start<br \/>\nStarting php_fpm.[root@bsd01 etc]#\/usr\/local\/etc\/rc.d\/nginx start<br \/>\nPerforming sanity check on nginx configuration:<br \/>\n2008\/12\/01 00:04:26 [info] 1136#0: the configuration file \/usr\/local\/etc\/nginx\/nginx.conf syntax is ok<br \/>\n2008\/12\/01 00:04:26 [info] 1136#0: the configuration file \/usr\/local\/etc\/nginx\/nginx.conf was tested successfully<br \/>\nStarting nginx.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6d4b\u8bd5\u4e00\u4e0b\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u8bbf\u95ee\u5c31\u5927\u529f\u544a\u6210\u4e86\u3002<\/p>\n<p><strong>\u56db\u3001\u8ba9nginx\u81ea\u52a8\u542f\u52a8<\/strong><\/p>\n<p>\u5982\u679c\u8ba9nginx\u5f00\u59cb\u81ea\u52a8\u542f\u52a8\u5728\/etc\/rc.conf\u4e2d\u52a0\u5165nginx_enable=&#8221;YES&#8221;\u3002<\/p>\n<p>\u5982\u679c\u4f7f\u7528php-fpm\u5219\u9700\u8981\u5728\/etc\/rc.conf\u4e2d\u52a0\u5165php_fpm_enable=&#8221;YES&#8221;\u3002<\/p>\n<p>PS: FreeBSD \u6709\u4e86\u81ea\u5df1\u7684 spawn-fcgi\uff0c\u5728 \/usr\/ports\/www\/spawn-fcgi \u4e0b\u9762\uff0c\u5728\u5b89\u88c5 nginx \u4e0d\u9700\u8981\u663e\u5f0f\u5730\u501f\u7528 lighttpd \u7684\u4e86.<\/p>\n<table width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\" align=\"center\">\n<tbody>\n<tr>\n<td bgcolor=\"#ddedfb\"># cd \/usr\/ports\/www\/spawn-fcgi<br \/>\n# make install clean#vi \/etc\/rc.conf<br \/>\n+ spawn_fcgi_enable=&#8221;YES&#8221;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u53ef\u7528\u53c2\u6570\u7684\u9ed8\u8ba4\u53c2\u6570\u5982\u4e0b<\/p>\n<p>: ${spawn_fcgi_enable=&#8221;NO&#8221;}<br \/>\n: ${spawn_fcgi_app=&#8221;\/usr\/local\/bin\/php-cgi&#8221;}<br \/>\n: ${spawn_fcgi_pidfile=&#8221;\/var\/run\/spawn-fcgi.pid&#8221;}<br \/>\n: ${spawn_fcgi_user=&#8221;www&#8221;}<br \/>\n: ${spawn_fcgi_group=&#8221;www&#8221;}<br \/>\n: ${spawn_fcgi_bindaddr=&#8221;127.0.0.1&#8243;}<br \/>\n: ${spawn_fcgi_bindport=&#8221;9000&#8243;}<br \/>\n: ${spawn_fcgi_children=&#8221;5&#8243;}<br \/>\n: ${spawn_fcgi_max_requests=&#8221;1000&#8243;}<br \/>\n: ${spawn_fcgi_web_server_addrs=&#8221;&#8221;}<br \/>\n: ${spawn_fcgi_allowed_env=&#8221;&#8221;}<br \/>\n: ${spawn_fcgi_path_env=&#8221;\/sbin:\/bin:\/usr\/sbin:\/usr\/bin:\/usr\/games:\/usr\/local\/sbin:\/usr\/local\/bin&#8221;}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nginx (&#8220;engine x&#8221;) \u662f\u4e00\u4e2a&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[13,14,15],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-web","category-3","tag-freebsd","tag-nginx","tag-php"],"_links":{"self":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=82"}],"version-history":[{"count":3,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":84,"href":"https:\/\/www.01xj.net\/index.php?rest_route=\/wp\/v2\/posts\/82\/revisions\/84"}],"wp:attachment":[{"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.01xj.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}