PHP与nginx及linux的性能设置.

##PHP配置##
php-fpm设置:
一./etc/php/5.5/fpm/pool.d/www.conf中
pm.max_children = 200
pm.start_servers = 9
pm.min_spare_servers = 9
pm.max_spare_servers = 150
listen.backlog = 4096

PHP.ini配置:
二./etc/php/5.5/fpm/php.ini
memory_limit= 10240M
php opcache设置:
三./etc/php/5.5/fpm/conf.d/10-opcache.ini:
opcache.enable=1
opcache.enable_cli  1
opcache.fast_shutdown  1
opcache.file_update_protection   0
opcache.max_accelerated_files  100000
opcache.memory_consumption  5120
opcache.revalidate_freq  10
##nginx配置##
/etc/

The post PHP与nginx及linux的性能设置. first appeared on Lenix Blog.

本文转自: https://blog.p2hp.com/archives/11539
仅做个人收藏,版权归原作者所有