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

Install the swoole PHP extension

WBOY
Release: 2016-07-29 08:58:16
Original
1053 people have browsed it

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>
Copy after login

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>
Copy after login

Configure php.ini

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

<code>extension=swoole.so</code>
Copy after login

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template