Max_children = 40, each children occupies 20 m-30m of memory on average. The more children, the more concurrency can be accepted at the same time. Generally, the value of children is the highest concurrency of the website + floating value, this
FastCGI working method:FastCGI works by separating the PHP service and using a process to run php, instead of loading PHP through the Apache module, so that PHP will work in the memory. when responding to the Apache server, by enabling the thread,
Key points for developing large-scale and high-load website applicationsAuthor: maid
Source: http://www.phpchina.com/bbs/thread-15484-1-1.html
After reading some people's so-called large projects, I feel a little uncomfortable without talking
Php-fpm.conf
The editor configures the FPM configuration file as a php-fpm.conf when loading... runtime, and its syntax is similar to php. ini. Position of the pid stringPID file in the php-fpm.conf global configuration segment. the default value is
I want to change Apache2.2 to Nginx for a few days. Today I will try it. Found a stable version: 1.4.1 http://nginx.org/download/nginx-1.4.1.zipThe configuration is very simple, that is, it is troublesome to manage nginx and php-cgi
Php-cgi supported by php-fpmModify the php-fpm process count in/usr/local/php/etc/php-fpm.conf to find max_children and change the following value to the value you want to set.. The code is as follows:Copy code #
Thinkphp Learning (i) installation and configuration of nginx+php5+thinkphp_3.2.1 under Windows
Tool Material:
Nginx153:
Download the Web drive address: http://pan.baidu.com/s/1qWNgLf2
Php-5.3.28-nts-win32-vc9-x86
Download the Web drive address:
Windows Environment Installation Redis client Phpredisadmin
Recently, using Redis as a session store in a Tomcat cluster also stores some data with high traffic.
In the process of debugging, you need to look at the data cached in Redis, the
The CGI full name is the Universal Gateway Interface (Common Gateway Interface), which allows a client to request data from a Web browser to a program that executes on a Web server. CGI describes a standard for transferring data between the client
First step to install the. Net Core EnvironmentInstall dotnet Environment See the official website Https://www.microsoft.com/net/core.Select the appropriate system version to install. After the installation is completed, enter the command to view
is understanding, access to information, coupled with self-understanding, to draw conclusions, if there are errors, please correct me ....LNP environment, Nginx and PHP working together to explain the principle:Before the internet era, we become web1
The general default installation directory for PHP is:
/usr/local/php/
We use PHP-FPM to reload the configuration file (such as php.ini):
/USR/LOCAL/PHP/SBIN/PHP-FPM Reload
Note:/USR/LOCAL/PHP/SBIN/PHP-FPM also has other parameters, including:
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
PS aux |grep php-fpm |moreView Total PHP-FPM
php-fpm.conf Configuration
PID string
The location of the PID file. The default is empty.
Error_log string
The location of the error log. Default: Installation path
Nginx is a very lightweight HTTP server written by the Russians, written in event-driven fashion, so it has very good performance and is also a very efficient reverse proxy, load balancing. It has the performance of matching lighttpd while there is
PHP and Nginx Integration
PHP-FPM is also a third-party fastcgi process manager, which is developed as a patch in PHP, also need to compile with the PHP source code when installing, that is to say, PHP-FPM is compiled into the PHP kernel, so it is
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.