search

Home  >  Q&A  >  body text

nginx 502 Bad Gateway

nginx 502 Bad Gateway

The server keeps reporting this error recently. Can you please provide a solution?

巴扎黑巴扎黑2844 days ago786

reply all(4)I'll reply

  • 阿神

    阿神2017-05-16 17:23:53

    Look at the php slow log. See what caused it, whether it was a mysql query or php.

    reply
    0
  • 某草草

    某草草2017-05-16 17:23:53

    There are many opinions on the Internet, but they are basically response timeouts. Can optimize the server's configuration file, buffering, number of PHP processes, maximum execution time, etc.

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 17:23:53

    Specific errors should be analyzed in detail. There are many reasons for 502

    It is recommended that LZ open the log and read the log first

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 17:23:53

    I checked the bandwidth and the CPU is normal. Our statistics are that for 100 visits, 502 bad getway will appear 8 times

    reply
    0
  • Cancelreply