gearman PHP7扩展安装

注:官方提供的只支持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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。