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