安装Redis服务器的时候,使用brew安装。想改配置文件的时候一下子没找到。
有看到介绍说配置文件在/etc/
目录下,我没有找到配置文件。
后面通过brew info redis
redis: stable 3.0.7 (bottled), HEAD
Persistent key-value database, with built-in net interface
http://redis.io/
/usr/local/Cellar/redis/3.0.7 (9 files, 876.3K) *
Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/redis.rb
==> Options
--with-jemalloc
Select jemalloc as memory allocator when building Redis
--HEAD
Install HEAD version
==> 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
配置文件在/usr/local/etc/redis.conf
.
f`.