php7.1 installation swoole extension

Installation swoole extensions php7.1 have compiled installation.

First, download swoole extension

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

swoole download .png

bash
  1. wget -c http://pecl.php.net/get/swoole-4.2.1.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/bin/phpize

Fourth, specify the php configuration file precompiled

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

Fifth, build and install

make && make install

    Compile the installation:

make success.png

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

bash
  1. vim /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/fuwentao/p/11932913.html