2.swoole installation

A test environment

1.centos7.4 64位
2.php7.2.16
3.swoole4.3.4

II. Compiler installation

wget https://github.com/swoole/swoole-src/archive/v4.3.4.tar.gz
tar -zxvf
cd swoole-src
phpize
./configure
make && make install

III. Changing PHP configuration file, open extension

Find profile: PHP -i | grep Config
 vim /usr/local/php/etc/php.ini
 Extension = swoole
see if the open: PHP -m 
`` `


* Easier installation

 pecl install swoole

Reproduced in: https: //www.jianshu.com/p/28f381ca0834

Guess you like

Origin blog.csdn.net/weixin_34111790/article/details/91150340