CGI 、fastcgi、php-cgi、php-fpm

  1. CGI appears: get up early web server can only handle static resource requests, along with web development, need to deal with requests for dynamic resources. web server can not handle, we can only rely on external applications to place dynamic requests. As to external application to handle dynamic resource requests that the web server with external applications need data communication, communication naturally needs a norm, CGI is the protocol web server applications to communicate with the outside. (Lenovo http protocol)
  2. CGI program and a web server environment variables and data transfer via the standard input, standard output. Entity body of the request is passed to the CGI program via standard input, standard output the processing result is returned by the web server.
  3. Some of these items from: https://www.jianshu.com/p/c4dc22699a42

Guess you like

Origin www.cnblogs.com/bneglect/p/12195877.html