如何安装配置nginx+phpfpm+php服务器

2025-04-02 09:40:17
推荐回答(1个)
回答1:

php用php-fpm启动,然后nginx
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
这样就可以了