Gearman Worker 立即断开连接
Gearman Worker immediately disconnected
我在 OSX 上与 Gearman 有点争执。我已经用 brew 设置了 gearman :
brew install gearman php55-gearman
当我启动 worker 时,它直接断开连接。齿轮日志:
INFO 2015-04-26 22:07:57.000000 [ main ] Accepted connection from 127.0.0.1:55360
INFO 2015-04-26 22:07:57.000000 [ 4 ] Peer connection has called close()
INFO 2015-04-26 22:07:57.000000 [ 4 ] Disconnected 127.0.0.1:55360
INFO 2015-04-26 22:07:57.000000 [ 4 ] Gear connection disconnected: -:-
而且我的脚本没有错误:
...
@worker\servers :
#localhost - 127.0.0.1:4730
@Worker\description :
Data file Worker
[2015-04-27 00:07:57] loaded. Ctrl+C to break
## (back to shell)
gearman 版本是:
- 服务器:gearmand 1.1.12 - https://bugs.launchpad.net/gearmand
- lib : libgearman 版本 => 1.1.12
我有一个 Debian 安装程序在 prod env 上工作,这些版本是通过 apt 软件包安装的:
- 服务器:gearmand 1.1.12 - https://bugs.launchpad.net/gearmand
- lib : libgearman 版本 => 0.33
有没有人遇到过同样的错误?
谢谢。
问题不是来自 gearman 或 lib,而是我使用的 Symfony Bundle。 (比照https://github.com/mmoreram/GearmanBundle/issues/143)。
我在 OSX 上与 Gearman 有点争执。我已经用 brew 设置了 gearman :
brew install gearman php55-gearman
当我启动 worker 时,它直接断开连接。齿轮日志:
INFO 2015-04-26 22:07:57.000000 [ main ] Accepted connection from 127.0.0.1:55360
INFO 2015-04-26 22:07:57.000000 [ 4 ] Peer connection has called close()
INFO 2015-04-26 22:07:57.000000 [ 4 ] Disconnected 127.0.0.1:55360
INFO 2015-04-26 22:07:57.000000 [ 4 ] Gear connection disconnected: -:-
而且我的脚本没有错误:
...
@worker\servers :
#localhost - 127.0.0.1:4730
@Worker\description :
Data file Worker
[2015-04-27 00:07:57] loaded. Ctrl+C to break
## (back to shell)
gearman 版本是:
- 服务器:gearmand 1.1.12 - https://bugs.launchpad.net/gearmand
- lib : libgearman 版本 => 1.1.12
我有一个 Debian 安装程序在 prod env 上工作,这些版本是通过 apt 软件包安装的:
- 服务器:gearmand 1.1.12 - https://bugs.launchpad.net/gearmand
- lib : libgearman 版本 => 0.33
有没有人遇到过同样的错误? 谢谢。
问题不是来自 gearman 或 lib,而是我使用的 Symfony Bundle。 (比照https://github.com/mmoreram/GearmanBundle/issues/143)。