zl程序教程

您现在的位置是:首页 >  后端

当前栏目

php-fpm开启报错-ERROR: An another FPM instance seems to already listen on /tmp/php-cgi.sock详解编程语言

PHPOn编程语言 详解 报错 Error 开启 to
2023-06-13 09:11:47 时间
location ~ [^/]/.php(/|$) { 

 fastcgi_pass unix:/tmp/php-cgi.sock; //把127.0.0.1:9000改为此行 

 fastcgi_index index.php; 

 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 

 include fastcgi_params; 

location / { 

 root html; 

 index index.php index.html index.htm; 

}

修改完平滑重启nginx,然后启动php-fpm,OK

原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/17149.html

cjavaphp