Linux启动gearman服务(gearman)
来源:网络
0
Linux启动gearman服务(gearman)系统大全为您提供好久没用Gearman了,服务器上的Gearmanserver不知道什么时候被停掉了,所以当执行程序时,报错:File"python/response.py",line41,in<module>File"python/response.py",line38,inmaingm_worker.set_client_id('your_worker_client_id_name')File"/usrb64/python2.7/site-packages/gearman-2.0.2-py2.7.egg/gearman/worker.py",line98,inworkcontinue_working=self.poll_connections_until_stopped(worker_connections,continue_while_connections_alive,timeout=poll_timeout)File"/usrb64/python2.7/site-packages/gearman-2.0.2-py2.7.egg/gearman/connection_manager.py",line204,inpoll_connections_until_stoppedraiseServerUnavailable('Foundnovalidconnectionsinlist:%r'%self.connection_list)gearman.errors.ServerUnavailable:Foundnovalidconnectionsinlist:[<GearmanConnectionlocalhost:4730connected=False>]从errorlog的最后一行ServerUnavailable,可以看出是Gearman的server被停掉了。1.当我执行gearmand-d命令时,先是提示ar/log/gearman/gearman.log不存在,所以先在这个路径下创建一个log文件;2.启动本机的Server,端口是4730,命令是:gearmand--log-filegearmand.log--listen127.0.0.1--port=4730--verbose=INFO& 以上就是系统大全给大家介绍的如何使的方法都有一定的了解了吧,好了,如果大家还想了解更多的资讯,那就赶紧点击系统大全官网吧。本文来自系统大全https://www.booso.com/filepic/20230503/nfl2odxdgv4