我正在使用OSX并尝试通过Brew安装Redis。
最终我已经安装了redis,但是当我以以下方式运行它时:
brew install redis
==> Downloading http://download.redis.io/releases/redis-2.8.17.tar.gz
Already downloaded: /Library/Caches/Homebrew/redis-2.8.17.tar.gz
==> make -C /private/tmp/redis-WEL8AT/redis-2.8.17/src CC=clang
==> Caveats
To have launchd start redis at login:
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
Then to load redis now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
Or, if you don't want/need launchctl, you can just run:
redis-server /usr/local/etc/redis.conf
==> Summary
最终我已经安装了redis,但是当我以以下方式运行它时:
redis-server /usr/local/etc/redis.conf
出现错误信息,
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 54
>>> 'tcp-backlog 511'
Bad directive or wrong number of arguments
我从 Redis tcp-backlog中学到了需要取消注释redis.conf文件中的那一行。但是其他行仍然存在更多的错误。怎么解决呢?