fastcgi_pass 127.0.0.1:9000
fastcgi_index index.php
include fastcgi.conf
}
php用php-fpm启动,然后nginxlocation ~ \.php$ {
fastcgi_pass 127.0.0.1:9000
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name
includefastcgi_params
}
这样就可以了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)