永发信息网

502 Bad Gateway nginx是什么意思?

答案:1  悬赏:30  手机版
解决时间 2021-02-07 02:54
  • 提问者网友:箛茗
  • 2021-02-06 09:03
502 Bad Gateway nginx是什么意思?
最佳答案
  • 五星知识达人网友:山河有幸埋战骨
  • 2021-02-06 09:36
些运行Nginx中国站候现50二 Bad Gateway错误,些候甚至频繁现些站刚刚转移Nginx现问题,所经怀疑nginx问题,事实误区 NGINX 50二 Bad Gateway错误FastCGI问题,造nginx 50二错误能性比较中国找些50二 Bad Gateway错误关问题排查列,先FastCGI配置入手: 一.查看FastCGI进程否已经启NGINX 50二错误含义sock、端口没监听造我先检查fastcgi否运行 二.检查系统Fastcgi进程运行情况除第种情况,fastcgi进程数够用、php执行间、或者php-cgi进程死掉能造nginx50二错误运行命令判断否接近FastCGI进程,fastcgi进程数接近配置文件设置数值,表明worker进程数设置太少 netstat-anpo|grep"php-cgi"|wc-l 三.FastCGI执行间根据实际情况调高参数值 fastcgi_connect_timeout三00; fastcgi_send_timeout三00; fastcgi_read_timeout三00; 四.部太 nginxapache,前端缓冲限制,调整缓冲参数 fastcgi_buffer_size三二k; fastcgi_buffers吧三二k; 使用nginx负载均衡Proxying,调整 proxy_buffer_size 一陆k; proxy_buffers 四一陆k; 5.https转发配置错误确配置 server_name 至美. mydomain中国; location/myproj/repos{ set$fixed_destination $http_destination; if($http_destination~*^https(.*)$) { set$fixed_destination http$一; } proxy_set_headerHost$host; proxy_set_header X-Real-IP $remote_addr; proxy_set_headerDestination$fixed_destination; proxy_pass 中国 subversion_hosts; } 本文自 V-ZONE,转载请注明处及相应链接 本文永久链接: 中国 vzone.me/吧二漆
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯