1.下載:wget http://pecl.php.net/get/swoole-1.9.1.tgz
2.解壓:tar-zxvf swoole-1.9.1.tgz
3.cd swoole-1.9.1
4.phpize
5../configure --with-php-config=/usr/local/php/bin/php-config(後面是安裝swoole的路徑)
6.make
7.make test
8.make install
9.在php.ini添加swoole.so
extension=swoole.so