Installation swoole extensions php7.1 have compiled installation.
First, download swoole extension
Download: http://pecl.php.net/package/swoole
bash
- wget -c http://pecl.php.net/get/swoole-4.2.1.tgz
Second, unzip the package swoole
bash
- xzvf swoole tar - Over 4.2 . 1.tgz
- 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:
Sixth, compiled the php.ini file, add swoole.so
bash
- vim /etc/php.ini
Seven, to take effect restart php-fpm
bash
- service php-fpm restart