, find a balance point.
There's also a lazy approach to max_children,
If your PHP is 5.3, then you can set the FPM style to Apache-like, this time the number of children by FPM automatic control. The corresponding configuration parameters are
Start_servers: Number of start processes
Min_spare_servers: Minimum number of processes
Max_spare_servers: Maximum number of processes
When the server is more idle, FPM will take the initiative to kill some redundant children, to save resources, when the se
LNMP upgrade php5.4.28 or later version error 502 bad Gateway
Encounter a very strange problem, with LNMP./upgrade_php.sh upgrade php5.4.27 normal.
But upgrade to php5.4.28 error, Access p.php hint: Nginx 502 bad Gateway. Try again in the morning, upgrade to 5.5.12 access p.php is also the same hint: Nginx 502 Bad
debug, find a balance point.
There's also a lazy approach to max_children,
If your PHP is 5.3, then you can set the FPM style to Apache-like, at which time the number of children is automatically controlled by FPM. The corresponding configuration parameters are
Start_servers: Number of start processes
Min_spare_servers: Minimum number of processes
Max_spare_servers: Maximum number of processes
When the server is idle, FPM will actively kill some extra children to conserve resources, and the ser
The first reason: Install LNMP a key installation package when PHP did not install successfully and 502 bad Gateway, starting from 0.9 as long as the installation of success or failure will be prompted. Failure to install the general reason is that before the installation of PHP, some LIB packages in the script may not be installed, causing PHP failed to compile the installation successfully. You can see if there is a/usr/local/php/sbin/php-fpm, if it
The returned version is incorrect. After many tests, no problem was found. Ask for help: soap_versionmismatch
The following is the MMS package
Post/mmssendmessageservice HTTP/1.1HOST: 118.85.200.55: 9081User-Agent: WuContent-Type: multipart/related; boundary = "= part20120113070919 ="; type = "text/XML"; Start = "Content-Length: 1859
Connection: CloseSoapaction :""
-- = Part20113013070919 =Content-Type: text/XML; charset = UTF-8Content-transfer-encoding: BinaryContent-ID:
-- = Part20113
The way to resolve 502 Bad Gateway is:
1. Depending on the performance of the server, in the php-fmp.conf to increase the value of Max_children, I currently use 15.
(a php-fpm uses about 20M of RAM, if your memory is about 1G,1024/20=50)
2. Use the reload parameter to reload the PHP-FPM periodically. Release the memory used by PHP-FPM, the PHP script execution time is too long to cause memory to use excessively, overload php-fpm can eliminate this
Ifconfig Check the configuration, no problem, is OK,Check the firewall, it's closed, damndest, what's the problem?All kinds of attempts, finally, the IP into automatic acquisition can be ping through, but why not manually set it?Finally read this friend's article http://my.oschina.net/kevinvane/blog/354314Just woke me up, I also installed a VirtualBox, the original is a virtual network card conflict, the VirtualBox deleted, OKPs:virtualbox I feel not very stable ah (sometimes abnormal shutdown a
Nginx + php-fpm error 502 bad gateway solution, nginxphp-fpm
1. nginx error cannot be found. Generally, You need to modify/usr/local/nginx/conf/nginx. conf (careful modification may cause other website problems)
Error 2,502
Case 1: nginx fails:
Command:/usr/local/nginx/sbin/nginx-s reload
Wait a moment later
Case 2: ph
Today, I set up a WORDPRESS site in the newly installed Linode VPS. Who knows that there was an inexplicable 502 Bad Gateway error when step = 2.20110112200117-156870207 [1]At the beginning of thought is the concurrency and memory problems, adjusted the php-fpm.ini, also re-compiled php. The problem persists. Okay. Check the Centos logs.# Less/var/log/messages // view log files in the system.The most recent
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.