Home >Operation and Maintenance >Linux Operation and Maintenance >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
./configure --with-php-config=/usr/local/php7/bin/php-config
(This is me Configuration)
##echo $? Check whether the previous step was executed successfully
make && make install
vim /usr/local/php7/etc/php.ini extension =/usr/local/php7/lib/php/extensions/no-debug-non-zts-20170718/swoole.so
##View
phpinfo();
Recommended related articles and tutorials:
linux tutorialThe 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!