Home >Backend Development >PHP Tutorial >Install the swoole PHP extension

Install the swoole PHP extension

WBOY
WBOYOriginal
2016-07-29 08:58:161053browse

Installation preparation

Before installing swoole, you must ensure that the following software has been installed on the system

<code>php-5.3.10    // 或更高版本
gcc-4.4       //或更高版本
make
autoconf</code>

Install the PHP extension of swoole

<code>wget https://github.com/swoole/swoole-src/archive/swoole-1.8.2-stable.tar.gz
tar -zxvf swoole-1.8.2-stable
cd swoole-src-swoole-1.8.2-stable/
/usr/local/php/bin/phpize
./configure
make && make install</code>

Configure php.ini

After successful compilation and installation, modify php.ini and add

<code>extension=swoole.so</code>

The above introduces the PHP extension for installing swoole, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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
Previous article:Yii源码解读 - 事件Next article:Yii源码解读-行为