Sometimes, the Linux server running Nginx, php-cgi (PHP-FPM) Web services, suddenly the system load up, use the top command to view, many php-cgi process CPU utilization is close to 100%. Later, I tracked the discovery that this kind of situation is
See the reason may be not enough php-cgi process, PHP execution time (MySQL slow), or php-cgi process die, there will be 502 errors.
1. In the installed environment, run for a period of 502 problems, generally because the default php-cgi process is 5
: This article mainly introduces the ultimate solution for Nginx prompts 502 and 504 errors. if you are interested in PHP tutorials, please refer to it. Large memory can increase the following parameters to effectively reduce error 502
Main
Recently, we need to use the Excel import function. Because there are a lot of Excel data, and our server programs need to verify the data content, many external service interfaces will be called, so there is no suspense that the Excel import
Reprint article Source: http://www.111cn.net/sys/nginx/90669.htm (if invasion delete)
Nginx Newspaper 504 Gateway Timeout error caused, one is the file configuration problem, the other is related to the length of processing, and finally there may
Objective: To ascertain the fastcgi and php-fpm of ChuArticle Source: http://segmentfault.com/q/1010000000256516Problem:I check the relationship between FastCGI and php-fpm on the Internet, check for a week, the basic look at the times, it is very
Recently built a site with Dedecms a large number of content, there are three columns of content of more than 2000, more than 2,300 two columns in the generation of column list when the 504 Gateway time-out server used is nginx, I do not understand,
Selected from: https://www.cnblogs.com/kenshinobiy/p/7470635.html
1) CGI
The CGI full name "Public Gateway Interface" (Common Gateway Interface) is an interface for HTTP servers to communicate with programs on other machines, and its programs must
504 Gateway time-out issues common to Web sites that use Nginx as a Web serverI met this problem when I was upgrading the Discuz forum.In general, this situation may be due to the Nginx default fastcgi process response buffer is too small, which
504 gateway time-out problems are common in websites that use nginx as the Web server.
I encountered this problem when upgrading the discuz forum.
In general, this situation may be caused by the small buffer of nginx's default FastCGI process
504 gateway time-out
Problem:
The requested gateway does not have a request. In short, it does not have a request for PHP-CGI that can be executed.
In general, this situation may be caused by the small buffer of nginx's default FastCGI process
Some websites running on Nginx sometimes appear as "502 Bad Gateway" errors, some times even frequently. The following is a small compilation of some of the Nginx 502 error troubleshooting Methods for reference:
The reason for the Nginx 502 error
On several offline servers that are not very busy, the number of PHP-FPM processes is found to be more than 500, and some processes run for several months.
The following troubleshooting was performed to determine if there is a problem with the
Recently, the phenomenon of server downtime more frequent, temporary work, G to hang up, 502 Bad Gateway Nginx, I can not help but remind me before the 504 gateway time-out, the two should be a bit of contact, we must find out. The implication of
https://segmentfault.com/q/1010000000256516I check the relationship between FastCGI and php-fpm on the Internet, check for a week, the basic look at the times, it is very divergent opinions, there is no authoritative definition.Online some say,
PHP security practices that system administrators must know
PHP is an open source server-side scripting language that is widely used. The Apache Web server provides this convenience: access to files and content via HTTP or HTTPS protocol. Improperly
The security practice of PHP, which must be known by system administrators, is an open source server scripting language and widely used. The Apacheweb server provides the convenience of accessing files and content through HTTP or HTTPS. Improper
First, the error hint Description:
Nginx 502 Bad Gateway means that the requested php-cgi has been executed, but the php-cgi process is terminated for some reason (typically a problem reading the resource) is not completed.
The implication of
First, the error hint Description:
Nginx 502 Bad Gateway means that the requested php-cgi has been executed, but the php-cgi process is terminated for some reason (typically a problem reading the resource) is not completed.
The implication of Nginx 5
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.