How to install swoole in linux environment
Download source code
http://git.oschina.net/swoole/swoole
Compile and install
cd swoole
phpize (ubuntu 没有安装phpize可执行命令:sudo apt-get install php-dev来安装phpize)
./configure (此处需要定义php的路径)
make && make install
Configure php, test
#修改php.ini文件
extension=swoole.so
#测试模块是否加载
php -m