How to install swoole on linux system

王林
Release: 2019-12-02 09:27:12
Original
2956 people have browsed it

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

2. Unzip tar xvf swoole-4.2.6.tgz

cd swoole-4.2.6
Copy after login

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

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!