php-fpm

1、安装:

编译php时,加上 --enable-fpm 即可

2、配置:

sudo groupadd www-data
sudo useradd www-data
sudo cp /usr/local/etc/php-fpm.conf.default /usr/local/etc/php-fpm.conf
sudo cp /usr/local/etc/php-fpm.d/www.conf.default /usr/local/etc/php-fpm.d/www.conf

编辑文件:/usr/local/etc/php-fpm.conf,修改:include=/usr/local/etc/php-fpm.d/*.conf

编辑文件:/usr/local/etc/php-fpm.d/www.conf,修改:user = www-data,group = www-data

3、启动:

php-fpm





你可能感兴趣的:(php-fpm)