1:启动php-fpm
/usr/loca/php-fpm/sbin/php-fpm
2:配置nginx
location ~ \.php$ {
root /opt/ganglia;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
#include fastcgi_params;
include fastcgi.conf;
}
本站文章如无特殊说明,均为本站原创,如若转载,请注明出处:nginx+php-fpm配置 - Python技术站