编译
./configure --prefix=/usr/local/php/php-7.2.12 \
--enable-inline-optimization --disable-debug \
--disable-rpath --enable-shared --enable-opcache \
--enable-fpm \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-gettext \
--enable-mbstring \
--with-iconv \
--with-mcrypt \
--with-mhash \
--with-openssl \
--enable-bcmath \
--enable-soap \
--with-libxml-dir \
--enable-pcntl \
--enable-shmop \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-sockets \
--with-curl --with-zlib \
--enable-zip \
--with-readline
make
make install
重新编译安装需要执行
make clean
遇到问题及解决办法:
1、No pool defined. at least one pool section must be specified in config file
解决办法:
进入PHP安装目录/etc/php-fpm.d
cp www.conf.default www.conf