先安装swool安装工具和编译工具php
apt-get install php-pear php5-dev
安装swoolswoole
pecl install swoole
/etc/php/php*/cli/php.ini,添加工具
extension=swoole.so