Home >Operation and Maintenance >Linux Operation and Maintenance >How to install swoole on linux system

How to install swoole on linux system

王林
王林Original
2019-12-02 09:27:123086browse

How to install swoole on linux system

1. Basic operating environment

Ensure that the PHP version is greater than or equal to 7.1

Ensure that the Swoole extended version is greater than or equal to 1.9.23 Or 2.1.0. The latest one is 4.2.6

Any version that requires pcntl extension

Use Composer as a dependency management tool

Linux environment CentOS 6.5 or higher Operating system

2. Download

1. Download cd /usr/local/src/

 wget http://pecl.php.net/get/swoole-4.2.6.tgz

2. Unzip tar xvf swoole-4.2.6.tgz

cd swoole-4.2.6

3. Compile /usr/local/php7/bin/phpize This is my php phpize location

How to install swoole on linux system

./configure --with-php-config=/usr/local/php7/bin/php-config (This is me Configuration)

How to install swoole on linux system

##echo $? Check whether the previous step was executed successfully

then

make && make install

How to install swoole on linux system

Add extension

vim /usr/local/php7/etc/php.ini
extension =/usr/local/php7/lib/php/extensions/no-debug-non-zts-20170718/swoole.so

How to install swoole on linux system##View

phpinfo();

244a36fd7647dc97241100f3f000c9How to install swoole on linux system Recommended related articles and tutorials:

linux tutorial

The above is the detailed content of How to install swoole on linux system. 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