swoole安装

首先下载 swoole

wget http://pecl.php.net/get/swoole-2.0.12.tgz

解压

tar zxvf swoole-2.0.12.tgz

进入swoole-2.0.12执行下面的代码

phpize
./configure
make 
make install

完事后修改php.ini
追加 extension=swoole.so
重新启动php

/etc/init.d/php-fpm restart
原文地址:https://www.cnblogs.com/xin-jun/p/8461556.html