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.
本文介绍了优化PHP、Nginx和Linux内核参数的方法,以提高服务器性能和稳定性。包括修改php-fpm、PHP.ini和opcache配置,调整Nginx的worker_processes和worker_connections,以及编辑/etc/sysctl.conf和/etc/security/limits.conf文件。