【问题标题】:installing and running redis with homebrew使用自制软件安装和运行 redis
【发布时间】:2018-01-10 21:53:49
【问题描述】:

我已经安装了redis

brew install redis

然后我从

开始

brew services start redis

但是当运行时

redis-cli ping

我明白了:

Could not connect to Redis at 127.0.0.1:6379: Connection refused

当我跑步时

brew services list

我明白了:

Name Status User Plist redis started clint /Users/clint/Library/LaunchAgents/homebrew.mxcl.redis.plist

但是当我在 Console.app 中查看 system.log 时,我每隔 10 秒就会看到一次: com.apple.xpc.launchd[1] (homebrew.mxcl.redis[85774]): Service could not initialize: 17C205: xpcproxy + 11572 [1522][1729AB5E-4591-3F1B-AC72-36700ABA4F74]: 0xd com.apple.xpc.launchd[1] (homebrew.mxcl.redis): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.

有什么想法吗?

【问题讨论】:

    标签: redis homebrew


    【解决方案1】:

    当我查看/Users/clint/Library/LaunchAgents/homebrew.mxcl.redis.plist 时,我发现它指向/usr/local/var/log 的日志目录。该文件夹的权限错误。做了chown -R $USER:admin /usr/local/**redis 后立即启动。

    【讨论】:

      猜你喜欢
      • 2015-03-16
      • 2015-11-18
      • 2021-12-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多