2.swoole安装

一.测试环境

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

二.编译安装

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

三.修改PHP的配置文件,开放扩展

查找配置文件:  php -i|grep Config
 vim /usr/local/php/etc/php.ini
 extension=swoole
查看是否已开放: php -m 
```


*更加简便的安装

 pecl install swoole

转载于:https://www.jianshu.com/p/28f381ca0834

猜你喜欢

转载自blog.csdn.net/weixin_34111790/article/details/91150340
今日推荐