标签:turn inf http cal color res sam gateway tar
It is also not language related, which is an opened extension of CGI, which is used to keep CGI running in the memory. It‘s well-known that loading of CGI has been the main reason of low performance.
the main process of running FastCGI:
php-cgi
of FastCGI.php.ini
, loading extensions and initiating all the data structures.
- Data from the article: Nginx 0.8x + PHP 5.2.13(FastCGI) is 10 times better than Apache(Edition 6)
- when 30k connection happens in parallel, 10 Nginx processes will only cost 150Mb Mem(15Mb 10), and 64 PHP-CGI will only cost about 1280Mb(20Mb 64).
php-cgi -b 127.0.0.1:9000
php.ini
, you should reboot PHP-CGI to make the new php.ini
work./usr/local/php/sbin/php-fpm [options]
# options
# --start: start a fastcgi process of php
# --stop: force to kill a fastcgi process of php
# --quit: smooth to kill a fastcgi process of php
# --restart: restart a fastcgi process of php
# --reload: smooth to reload php.ini
# --logrotate: enable log files again
CGI,FastCGI,PHP-CGI,PHP-FPM,Spawn-FCGI
标签:turn inf http cal color res sam gateway tar
原文地址:http://www.cnblogs.com/ch459742906/p/6850660.html