wget http://pear.php.net/go-pear.phar
php go-pear.phar
或者
yum install php-pear php-devel
pecl search swoole
可能會遇到如下錯誤:xml extension not found,執行如下命令:
yum install -y php-xml
yum install php-mysqlnd
http://thecancerus.com/installing-pear-and-phpunit-on-wamp-and-windows-7/