通过Resque安装/启动Redis出现问题

试图在这里完成Resque / Redis安装说明:

https://github.com/defunkt/resque/blob/master/README.markdown 

在以下命令中,我试图通过Resque尝试启动Redis:

 Craig:/usr/local/src/resque$ rake redis:start (in /usr/local/src/resque) Detach with Ctrl+\ Re-attach with rake redis:attach ../../bin/dtach -A /tmp/redis.dtach ../../bin/redis-server ../../../etc/redis.conf rake aborted! Command failed with status (127): [../../bin/dtach -A /tmp/redis.dtach ../../...] (See full trace by running task with --trace) 

重新运行–trace(仅显示部分跟踪):

 Craig:/usr/local/src/resque$ rake redis:start --trace (in /usr/local/src/resque) ** Invoke redis:start (first_time) ** Execute redis:start Detach with Ctrl+\ Re-attach with rake redis:attach ../../bin/dtach -A /tmp/redis.dtach ../../bin/redis-server ../../../etc/redis.conf rake aborted! Command failed with status (127): [../../bin/dtach -A /tmp/redis.dtach ../../...] /Users/craigflannagan/.rvm/gems/ruby-1.9.2-head@foo/gems/rake-0.8.7/lib/rake.rb:995:in `block in sh' 

不知道这里有什么错 – 顺便说一下,当我做了这些指示

 $ git clone git://github.com/defunkt/resque.git $ cd resque $ PREFIX=<your_prefix> rake redis:install dtach:install $ rake redis:start 

我不知道我是否应该在Rails项目中做#1,或者如果我想让git clone在Rails项目之外创build一个新文件夹(在这种情况下,我select了文件夹在项目之外创build)。

当您使用自定义前缀安装Redis和dtach时,还需要在启动Redis时传递该前缀。 否则,Resque Rakefile将尝试在/usr/local查找redis-server (或者我相信)。

或者,您可以自己下载,安装和运行Redis(请参阅: 本页 )。