nginx 502 Bad Gateway
The server keeps reporting this error recently. Can you please provide a solution?
阿神2017-05-16 17:23:53
Look at the php slow log. See what caused it, whether it was a mysql query or php.
某草草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.
给我你的怀抱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
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