connect() to unix:/var/run/php-fpm.sock failed (11: Resource temporarily unavailable)
来源:互联网 发布:自己开淘宝店怎么发货 编辑:程序博客网 时间:2024/06/05 23:53
在ubuntu12.04中安装配置LNMP时 出现在php5-fpm的错误
2013/04/26 04:01:05 [crit] 6119#0: *4 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 159.53.110.141, server: 216.238.88.42, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "216.238.88.42:9090
nginx中是这样配置的
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
#
# # With php5-cgi alone:
# fastcgi_pass 127.0.0.1:9000;
# # With php5-fpm:
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
我个人的配置是想用sock的方法 毕竟sock方式对于高并发来说 还是比使用cgi方式好的
问题其实出现在 fastcgi_pass得配置上面。在ubuntu 12.10安装了php5-fpm之后。我们可以去
/etc/php5/fpm/pool.d/www.conf
里面找到这样一段代码:
listen = 127.0.0.1:9000
在这上面代码的下面添加一行:
listen = /var/run/php5-fpm.sock
保存后启动php5-fpm
/etc/init.d/php5-fpm restart
这时就可以正常访问了
- connect() to unix:/var/run/php-fpm.sock failed (11: Resource temporarily unavailable)
- connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connect
- nginx 502 错误日志Connect to unix:/var/run/php5-fpm.sock failed
- Nginx + PHP-FPM (11: Resource temporarily unavailable)
- unix:/passenger_helper_server failed (11: Resource temporarily unavailable)
- ubuntu12.04安装php5-fpm 出错connect() to unix:/var/run/php5-fpm.sock
- error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or director
- Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or director
- 【异常】Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
- Cannot connect to the Docker daemon at unix:///var/run/docker.sock.??
- 【docker】Couldn't connect to Docker daemon at http+unix://var/run/docker.sock
- ubuntu下配置nginx支持phpt(unix:/var/run/php5-fpm.sock failed (2: No such file or directory) )
- cron can't lock /var/run/crond.pid other may be 993: Resource temporarily unavailable
- cron: can’t lock /var/run/crond.pid, otherpid may be 2699: Resource temporarily unavailable
- (CRON) DEATH (can't lock /var/run/crond.pid, otherpid may be 206): Resource temporarily unavailable
- kvm 安ERROR Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
- virt-manager linux上虚拟机安装错误处理:error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No
- KVM安装报错Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
- Android选择时间并且显示
- 加入sqlite开发库
- Win7系统在IIS7中重新注册.netframework
- linux下编写播放DVD的软件相关库
- Makefile学习笔记
- connect() to unix:/var/run/php-fpm.sock failed (11: Resource temporarily unavailable)
- python的list和dict是否是线程安全的讨论
- Centos5.4虚拟机安装
- 开源 Android pdf 阅读器开发总结
- QT容器类(三) 之 QMap、QHash
- zygote和system_server分析
- 巴斯达叔叔犹豫又结巴的电影说
- eclipse工程中classpath的信息
- 基于AForge的视频视图