请求帮助,关于connect() to unix:/tmp/php-cgi.sock failed
安装完成后打开网站502,打开nginx log 发现报错 2016/03/24 20:28:29 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配置
pid = /usr/local/php/var/run/php-fpm.pid
error_log = /usr/local/php/var/log/php-fpm.log
log_level = notice
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
~ 信息有限不好说,可以按置顶帖502排查方法进行排查
页:
[1]