gearman gives me GEARMAN_COULD_NOT_CONNECT, it is definitely running

前端 未结 4 727
甜味超标
甜味超标 2020-12-18 00:15

My dev server is Debian Squeeze and I\'m running Gearman 1.1.5 which I compiled from source along with the php pecl extension v1.1.1

If I run the reverse_client.php

4条回答
  •  天涯浪人
    2020-12-18 01:07

    I had the same problem and recently solved them after a couple days of frustration (hard to troubleshoot since there are three processes to worry about :-)

    It appears (at least in my case) that the PHP documentation for GearmanClient::addServer() and GearmanWorker::addServer() is incorrect. Specifically, the docs seem to imply that hostname and port number are optional and that it will use localhost and port 4730 as defaults if you do not specify them. This never works - it suddenly occurred to me today to try explicitly specifying them for both client and worker processes and everything started working.

    Try specifying all values for hostnames and ports and see if this works for you.

提交回复
热议问题