Home  >  Article  >  Backend Development  >  What should I do if php7 cannot install swoole?

What should I do if php7 cannot install swoole?

藏色散人
藏色散人Original
2020-04-09 09:59:152667browse

What should I do if php7 cannot install swoole?

php7 cannot be installed swoole What should I do?

Install the swoole extension in the compiled and installed php7.1.

1. Download the swoole extension

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

What should I do if php7 cannot install swoole?

bash
wget -c http://pecl.php.net/get/swoole-4.2.1.tgz

2 , Unzip the swoole package

bash
tar xzvf swoole-4.2.1.tgz
cd swoole-4.2.1

3. Generate the configure configuration file

/usr/local/php/bin/phpize

4. Specify the php configuration file for pre-compilation

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

5. Compile and install

make && make install

Compilation and installation results:

What should I do if php7 cannot install swoole?

##6. Compile the php.ini file and add swoole.so

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

What should I do if php7 cannot install swoole?

7 , restart php-fpm to take effect

bash
service php-fpm restart

What should I do if php7 cannot install swoole?

The above is the detailed content of What should I do if php7 cannot install swoole?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn