VPS侦探论坛

 找回密码
 注册
查看: 5881|回复: 1

请求帮助,关于connect() to unix:/tmp/php-cgi.sock failed

[复制链接]
发表于 2016-3-24 20:35:40 | 显示全部楼层 |阅读模式

安装完成后打开网站502,打开nginx log 发现报错 2016/03/24 20:28:29 [error] 2517#2517: *102 connect() to unix:/tmp/php-cgi.sock failed (111: Connection refused) while connecting to upstream, client: 218.65.212.157, server: mp.XX.com, request: "HEAD / HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "mp.xx.com"


看了看之前用的nginx都是转发到本地的9000端口,.

试着在本地的.tmp目录建立了一个文件,给了777权限,

还是报错,
网站找了一些方法,'
依旧报错,请求管理表帮忙看看...

这是php-fpm配置

[global]
pid = /usr/local/php/var/run/php-fpm.pid
error_log = /usr/local/php/var/log/php-fpm.log
log_level = notice

[www]
listen = /tmp/php-cgi.sock
listen.backlog = 4096
listen.allowed_clients = 127.0.0.1
listen.owner = www
listen.group = www
listen.mode = 0666
user = www
group = www
pm = dynamic
pm.max_children = 120
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 6
request_terminate_timeout = 100
request_slowlog_timeout = 0
slowlog = var/log/slow.log
~
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-3-25 19:51:14 | 显示全部楼层


信息有限不好说,可以按置顶帖502排查方法进行排查
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-17 20:29 , Processed in 0.025413 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表