gearman gives me GEARMAN_COULD_NOT_CONNECT, it is definitely running

前端 未结 4 735
甜味超标
甜味超标 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:08

    May be this could help someone. If you want to use single server, you can use

    $client->addServer($host, $port)
    e.g. $client->addServer('127.0.0.1', 4730)
    

    http://php.net/manual/en/gearmanclient.addserver.php

    If you want to use multiple server, then you can use

    $client->addServers($host1:$port1, $host2:$port2, $host3:$port3)
    e.g. $client->addServers('127.0.0.1:4730', '127.0.0.2:8080')
    

    http://php.net/manual/en/gearmanclient.addservers.php

提交回复
热议问题