php-fpm开启报错-ERROR: An another FPM instance seems..
2021-03-29 01:27
标签:地址 roo read netstat sock 启动进程 back instance rip 查看php-fpm.conf里面的配置: 此时根据配置文件的listen地址做对应的修改: 修改完后重启nginx,然后启动php-fpm就恢复正常了. php-fpm开启报错-ERROR: An another FPM instance seems.. 标签:地址 roo read netstat sock 启动进程 back instance rip 原文地址:https://blog.51cto.com/14472348/2483762
解决方法:
netstat -ant | grep 9000 //查看启动进程,发现没启动成功
vim /usr/local/php/etc/php-fpm.conf
[www]
listen = /tmp/php-cgi.sock //注意这里,要与下面的一致
listen.backlog = -1
listen.allowed_clients = 127.0.0.1
listen.owner = www
listen.group = www
vim /usr/local/nginx/conf/nginx.conf
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;
}
下一篇:js 数据类型
文章标题:php-fpm开启报错-ERROR: An another FPM instance seems..
文章链接:http://soscw.com/index.php/essay/69308.html