[Swoole] php7.1 installation swoole extension

See: https: //zixuephp.net/article-430.html

1, compile and install the source code, PHP version 7.1.33

2, installation swoole extensions php7.1 have compiled installation.

First, download swoole extension

    Download: http://pecl.php.net/package/swoole

swoole download .png

  1. wget -c http://pecl.php.net/get/swoole-4.4.4.tgz
  2. Or ftp last source packet, tar -xzvf swoole-4.4.4.tgz

Second, unzip the package swoole

bash
  1. xzvf swoole tar - Over 4.2 . 1.tgz
  2. cd swoole-4.2.1

Third, generate configure profiles

/usr/local/php/bin/phpize

Fourth, specify the php configuration file precompiled

./configure --with-php-config=/usr/local/php/bin/php-config

Fifth, build and install

the make  
the make the Test - error proc_open not open, modify disable_functions php.ini, the release function proc_open
make install

    Compile the installation:

make success.png

Sixth, compiled the php.ini file, add swoole.so

bash
  1. vim /usr/local/php/etc/php.ini

swoole.so.png

Seven, to take effect restart php-fpm

bash
  1. service php-fpm restart

swoole support.png

 

Guess you like

Origin www.cnblogs.com/xuzhengzong/p/11818365.html