swoole安装

swoole安装

git clone https://gitee.com/swoole/swoole.git
cd swoole/
phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install

修改php配置文件,使swoole生效

#编辑
vim /usr/local/php/etc/php.ini

#添加
extension=swoole.so

相关推荐