首先下载 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