Fastcgi related parameter tuning

When the LNMP combination works, the user first enters the domain name through the browser to request the Nginx Web service. If the request is a static resource, it will be parsed and returned to the user by Nginx; if it is a dynamic request (such as PHP), then Nginx will send it to the PHP engine service (ie php-fpm) through the FastCGI interface for analysis. If this dynamic request is to read database data, then PHP will continue to request the MySQL database backwards to read the required data. Finally, the obtained data is returned to the user through the Nginx service, which is the basic request process of the LNMP environment.

Introduction to FastCGI: CGI general gateway interface is a tool for the HTTP server to communicate with the program services on other machines. The performance of the CGI interface is poor, and it is required every time the HTTP server encounters a dynamic program. Restart the parser to perform the analysis, and then the result will be returned to the HTTP server, so there is FastCGI. FastCGI is an interface for communication between the HTTP server and the dynamic scripting language. It mainly separates the dynamic language from the HTTP server. Make the HTTP server specialize in processing static requests and improve the overall performance. Under Linux, the FastCGI interface is the socket. This socket can be a file socket or an IP socket

650) this.width=650;" alt="Copy code" src="/wp-content/uploadshttp:/img.voidcn.com/vcimg/static/loading.png" d=" 5338" s="48f_eef" t="gif">

[root@localhost ~]# pkillphp-fpm
[root@localhost~]#/usr/local /php/sbin/php-fpm

Leave a Comment

Your email address will not be published.