Install swool installation tools and compilers Tools
apt-get install php-pear php5-dev
Installation swool
pecl install swoole
/etc/php/php*/cli/php.ini, add
extension=swoole.so
Reproduced in: https: //my.oschina.net/u/2003520/blog/3060219