我已经安装了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
但是当我在system.log中查看Console.app时,我每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.
有什么想法吗?
发布于 2018-01-10 22:00:17
当我查看/Users/clint/Library/LaunchAgents/homebrew.mxcl.redis.plist时,我发现它指向/usr/local/var/log上的日志。该文件夹的权限是错误的。做完chown -R $USER:admin /usr/local/**后,红色立即启动。
https://stackoverflow.com/questions/48196717
复制相似问题