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.