•# PHP only, required if PHP was built with --enable-force-cgi-redirect
•#fastcgi_param REDIRECT_STATUS 200;
复制代码3)配置修改php-fpm脚本
配置php-fpm脚本:
cd /usr/local/php-fcgi/etc/
vi php-fpm.conf 修改如下内容进入vi编辑器,输入:set nu 显示行号.)
41 <value name="listen_address">127.0.0.1:8085</value>
•62 Unix user of processes
•63 <value name="user">www</value>
•65 Unix group of processes
•66 <value name="group">www</value>
•79 <value name="max_children">128</value>
•80
•81 Settings group for 'apache-like' pm style
•82 <value name="apache_like">
•83
•84 Sets the number of server processes created on startup.
•85 Used only when 'apache-like' pm_style is selected
•86 <value name="StartServers">20</value>
•87
•88 Sets the desired minimum number of idle server processes.
•89 Used only when 'apache-like' pm_style is selected
•
•90 <value name="MinSpareServers">5</value>
•91
•92 Sets the desired maximum number of idle server processes.
•93 Used only when 'apache-like' pm_style is selected
•94 <value name="MaxSpareServers">250</value>
•104 Set open file desc rlimit
•105 <value name="rlimit_files">51200</value>
•106
•107 Set max core size rlimit
•108 <value name="rlimit_core">0</value>
•109
•110 Chroot to this directory at the start
•111 <value name="chroot"></value>
•112
•113 Chdir to this directory at the start
•114 <value name="chdir"></value>
•115
•116 Redirect workers' stdout and stderr into main error log.
•117 If not set, they will be redirected to /dev/null, according to FastCGI specs