gearman issues & php cli

北战南征 提交于 2019-12-05 05:55:35

问题


I'm having some gearman issues when trying to run commands in terminal using php cli. For example I run this command:

gearmand --log-file=/var/log/gearman-job-server/gearman.log

and get:

gearmand: Could not open log file "/usr/local/var/log/gearmand.log", from "/home/jeitnier", switching to stderr. (No such file or directory)

ERROR 2013-01-25 16:25:53.000000 [ main ] bind(Address already in use) -> libgearman-server/gearmand.cc:612

ERROR 2013-01-25 16:25:53.000000 [ main ] bind(Transport endpoint is not connected) -> libgearman-server/gearmand.cc:626

The first line brings up my first issue which after Googling for hours, gives me nothing...Why is there an issue writing to the log? I can't seem to fix this. This occurs after running any commands.

Does anyone know what these errors are? Is it time to remove and re-install all gearman related items?


回答1:


Try the following from the terminal:

sudo mkdir /var/log/gearman-job-server/
sudo touch /var/log/gearman-job-server/gearmand.log
sudo killall gearmand
sudo gearmand --log-file=/var/log/gearman-job-server/gearmand.log


来源:https://stackoverflow.com/questions/14526086/gearman-issues-php-cli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!