Home > Backend Development > PHP7 > body text

What to do if regular 502 errors occur in php7 + linux?

藏色散人
Release: 2023-02-17 14:32:01
forward
2630 people have browsed it

A set of main station environment was built on the development and testing machine. At the beginning, it was normal and 502 was normal every time.

NGINX error log:

What to do if regular 502 errors occur in php7 + linux?

php-fpm.log log:

What to do if regular 502 errors occur in php7 + linux?

Change the php process to 1, strace -p pid -o text.txt, view the process:

What to do if regular 502 errors occur in php7 + linux?

dmesg View error message:

What to do if regular 502 errors occur in php7 + linux?

gdb View core dump:

What to do if regular 502 errors occur in php7 + linux?

No clear error From the source, I can only conclude that it is a memcache connection problem. I searched for the error and found that it was a problem with the memcached extension. I updated the corresponding memcached extension of php7 and returned to normal after restarting.

Recommended tutorial: "PHP7"

The above is the detailed content of What to do if regular 502 errors occur in php7 + linux?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template