注:官方提供的只支持PHP 6,需要第3方支持,https://github.com/wcgallego/pecl-gearman
yum install libgearman-devel -y 如没装,则config时报错 error: Please install libgearman
wget https://github.com/wcgallego/pecl-gearman/archive/master.zip
unzip master.zip
cd pecl-gearman-master
phpize
./configure
make && make install
echo 'extension=/usr/lib64/php/modules/gearman.so' > /etc/php.d/gearman.ini
php -m 列出
--------------------------------------------------------
yum install gearmand
systemctl start gearmand.service 或gearmand -d
rpm或yum安装的gearmand其log文件位置,/var/log/gearmand.log