标签:tmp listen lob serve star 增加 start pool vim
vim /usr/local/php/etc/php-fpm.conf
//在[global]部分增加include = etc/php-fpm.d/*.conf
# 相当与Nginx的虚拟主机文件 “vhost” 的配置mkdir /usr/local/php/etc/php-fpm.d/
cd /usr/local/php/etc/php-fpm.d/
创建“www” 的pool配置文件
vim www.conf
//内容如下
[www]
listen = /tmp/www.sock
listen.mode=666
user = php-fpm
group = php-fpm
pm = dynamic
pm.max_children = 50
pm.start_servers = 20
pm.min_spare_servers = 5
pm.max_spare_servers = 35
pm.max_requests = 500
rlimit_files = 1024
继续创建“admin”的pool配置文件
vim admin.conf
//内容如下
[admin]
listen = /tmp/admin.sock
listen.mode=666
user = php-fpm
group = php-fpm
pm = dynamic
pm.max_children = 50
pm.start_servers = 20
pm.min_spare_servers = 5
pm.max_spare_servers = 35
pm.max_requests = 500
rlimit_files = 1024
/usr/local/php/sbin/php-fpm –t
/etc/init.d/php-fpm restart
标签:tmp listen lob serve star 增加 start pool vim
原文地址:https://www.cnblogs.com/cy-8593/p/10046312.html