Gearman已安装在linux服务器上,但无法执行gearman命令

问题描述

我是Gearman的新手,并且按照How to install Gearman with PHP Extension中的建议执行了安装Gearman的过程。

最后的安装过程显示一条消息,表明Gearman已成功安装,但是当Iam执行命令启动Gearman时,它表示找不到命令。

command: gearmand -d
bash: gearmand: command not found

安装完成后显示的消息是:

Build process completed successfully
Installing '/usr/lib64/PHP/5.5/modules/gearman.so'
install ok: channel://pecl.PHP.net/gearman-1.1.2

在重新检查安装时,显然是说安装了减速器

pecl/gearman is already installed and is the same as the released version 1.1.2

解决方法

pecl/gearman使用libgearman库提供与gearmand通信并编写客户端和工作程序的API。

gearmand是守护程序,不是pecl/gearman的一部分,应单独安装。