7
连接到上游时connect()失败(111:连接被拒绝)
502 Gateway访问目录(http://example.com/dev/index.php)中的PHP文件时遇到错误。日志只是这么说: 2011/09/30 23:47:54 [error] 31160#0: *35 connect() failed (111: Connection refused) while connecting to upstream, client: xx.xx.xx.xx, server: domain.com, request: "GET /dev/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "domain.com" 我以前从未经历过。此类502 Gateway错误的解决方案是什么? 这是nginx.conf: user www-data; worker_processes 4; pid /var/run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { ## # Basic …