gearmand:无法打开日志文件“/usr/local/var/log/gearmand.log”

问题描述:

我想在我的Ubuntu 12.04中安装gearman。 其实安装成功了。但是当我启动守护进程时,我收到了这个错误。 gearmand:无法打开xxxx切换到stderr的日志文件“/usr/local/var/log/gearmand.log”。 (没有这样的文件或目录)gearmand:无法打开日志文件“/usr/local/var/log/gearmand.log”

我在这里丢失什么?我尝试安装不同版本的gearman,结果仍然是一样的。 任何帮助请...

+0

也许这会有所帮助.... HTTPS://stackoverflow.com/questions/14526086/gearman-issues-php-cli – BobSki

+0

这可能是一个权限问题。你尝试用sudo来运行它吗? –

/usr/local/var/log/gearmand.log--log-file选项的默认值。

gearmand --help

-l [ --log-file ] arg (=/usr/local/var/log/gearmand.log) 
             Log file to write errors and 
             information to. If the log-file 
             parameter is specified as 'stderr', 
             then output will go to stderr. If 
             'none', then no logfile will be 
             generated.