bash brew install redis (osx 10.7)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14498885/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 04:21:46  来源:igfitidea点击:

brew install redis (osx 10.7)

ruby-on-railsbashredishomebrew

提问by aug2uag

i tried installing Redis on osx 10.7 via homebrew in bash and I get the following error:

我尝试通过 bash 中的自制软件在 osx 10.7 上安装 Redis,但出现以下错误:

==> Downloading http://redis.googlecode.com/files/redis-2.6.9.tar.gz
Already downloaded: /Library/Caches/Homebrew/redis-2.6.9.tar.gz
==> make -C /private/tmp/redis-wQAX/redis-2.6.9/src CC=cc
Error: Permission denied - /usr/local/var/db

Redis is not installed from what i can tell.

据我所知,没有安装 Redis。

$ ps -aux | grep redis
ps: No user named 'x'

I cannot find the solution and don't know who to ask! Please let me know if you have workaround or solution/suggestion to this. Thank you!

我找不到解决方案,也不知道该问谁!如果您有解决方法或解决方案/建议,请告诉我。谢谢!

回答by Jintian DENG

I am also using osx 10.7. I think you don't need to install Redis via homebrew. You can just follow the simple instructions in redis homepage:

我也在使用 osx 10.7。我认为您不需要通过自制软件安装 Redis。您可以按照redis 主页中的简单说明进行操作:

enter image description here

在此处输入图片说明

回答by aug2uag

in bash:

在 bash 中:

cd /usr/local/var/
ls

the directory 'db' is most likely missing, create it:

目录“db”很可能丢失,创建它:

mkdir db

then run

然后运行

brew install redis

check /usr/local/var/log

检查 /usr/local/var/log

ls

most likely the directory 'log' is missing, create it

很可能缺少目录“log”,请创建它

mkdir log
brew install redis