Skip to content

倪之帅 Victor 个人主页

  • Home
  • Tech
    • Linux
    • LNMP
    • Mac
    • Mobile
    • Products
    • SMS
  • 英语学习
May 16, 2018 / Linux

Nginx 502 Bad Gateway solution

1.FastCGI take long time, you need add this configs to nginx.conf

fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;

2 FastCGI Buffer not enough, add to nginx.conf

fastcgi_buffer_size 32k;
fastcgi_buffers 8 32k;

3. Proxy Buffer not enough, add to nginx.conf

proxy_buffer_size 16k;
proxy_buffers 4 16k;

4. php-fpm log size more then 2G

Post navigation

Previous Post:

Set Up vsftpd on CentOS 6 and CentOS 7

Next Post:

How To Use Rsync to Sync Local and Remote Directories on a VPS

3 Commments

  1. school girl sex says:
    June 26, 2016 at 2:53 am

    Hello, Neat post. There’s a problem along with your website in web explorer, may test this?

    IE nonetheless is the market chief and a big component to
    other folks will pass over your wonderful writing because
    of this problem.

    Log in to Reply
  2. school girl sex says:
    July 1, 2016 at 1:19 pm

    A fascinating discussion is definitely worth comment. I believe that you
    ought to write more about this topic, it may not be a
    taboo matter but usually people do not speak about these subjects.
    To the next! Kind regards!!

    Log in to Reply
  3. sexy massage says:
    July 13, 2016 at 11:54 pm

    Hi! Do you use Twitter? I’d like to follow you if that would be okay.

    I’m definitely enjoying your blog and look forward to new posts.

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Categories

  • Linux
  • LNMP
  • Mac
  • Mobile
  • PHP
  • Products
  • SMS
  • Uncategorized
  • VPS
  • 原创
  • 技术

Recent Posts

  • composer切换源_composer全局更换镜像源的教程
  • 宝塔终端切换root用户为www
  • linux 宝塔 nginx php8.0 或者 php7 安装swoole
  • 宝塔面板修改composer默认PHP版本
  • PHP代码http跳转到https

Archives

  • October 2022
  • August 2022
  • June 2020
  • June 2019
  • October 2018
  • May 2018
  • April 2018
  • March 2018
  • July 2016
  • June 2016
  • April 2016
  • November 2015
  • October 2015
  • May 2015
  • April 2015
  • February 2015
  • January 2015
  • December 2014
  • October 2014
  • August 2014
  • April 2014
  • June 2011
  • June 2010
  • May 2010
  • April 2010
  • December 2004
  • October 2002
  • January 2001
  • March 2000
© 2000-2025 倪之帅 Victor 个人主页