1. 安装pear包
sudo apt-get install php-pear
2. 安装gearman
$ pecl install gearman
//php 说明
http://php.net/manual/en/install.pecl.pear.php
参考:
http://www.cnblogs.com/youxin/p/4138776.html
gearman的初次安装和使用
http://www.centoscn.com/image-text/install/2015/1028/6343.html //centOS上安装Gearman
php安装gearman扩展实现异步分步式任务
http://www.xiaomlove.com/2014/09/20/php%E5%AE%89%E8%A3%85gearman%E6%89%A9%E5%B1%95%E5%AE%9E%E7%8E%B0%E5%BC%82%E6%AD%A5%E5%88%86%E6%AD%A5%E5%BC%8F%E4%BB%BB%E5%8A%A1/