gearman安装及使用实例

在gearman的安装过程中,遇到下面的错误,could not find boost 解决方法为:

apt-get install build-dep gearman-job-server

成功解决后,遇到下面错误 could not find gperf 解决方法为:

apt-get install gperf

成功configure

然后运行make
make install

运行gearmand -d 查看log文件,出现以下错误 timeout occured when calling bind() for 0.0.0.0:4730

解决方法为:
修改gearmand.h中
if(_host){
   host= strdup(host_);
}
将if判断去掉,运行gearmand --verbose INFO --listen=127.0.0.1 -p 4730
查看log日志可见其已经成功启动。并监听本地4730端口

https://bugs.launchpad.net/gearmand/+bug/1127347

 

posted @ 2015-07-13 15:36  程序猿进化之路  阅读(486)  评论(0)    收藏  举报