PHP多线程扩展 pthreads 安装

1.编译安装PHP必须启用--enable-maintainer-zts

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-iconv-dir=/usr/local/libiconv --with-mysql=mysqlnd  --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --with-gettext --disable-fileinfo --enable-opcache --enable-intl  --with-xsl --enable-maintainer-zts

2.使用pecl安装pthreads

sudo pecl install pthreads

  

  

posted @ 2017-03-03 11:02  crabzc  阅读(419)  评论(0编辑  收藏  举报