個人服務器使用的是 ius 的 php5.5 ,若是你使用其餘源和版本,請自行替換部分包名php
yum install http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/epel-release-6-5.noarch.rpm yum install http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-11.ius.centos6.noarch.rpm
yum install gearmand
yum install libgearman libgearman-devel
yum install php-pear php55u-devel
pecl install gearman
You should add "extension=gearman.so" to php.ini
# php -m | grep gearman gearman