nginx 502 Bad Gateway
The server keeps reporting this error recently. Can you please provide a solution?
Look at the php slow log. See what caused it, whether it was a mysql query or php.
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.
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
I checked the bandwidth and the CPU is normal. Our statistics are that for 100 visits, 502 bad getway will appear 8 times
Look at the php slow log. See what caused it, whether it was a mysql query or php.
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.
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
I checked the bandwidth and the CPU is normal. Our statistics are that for 100 visits, 502 bad getway will appear 8 times