Homebrew安装Redis找不到redis.conf文件

使用Homebrew安装redis完成后,使用命令 redis-server 启动redis,如下图所示:

启动信息中存在一条警告信息:没有指定的配置文件

然而在安装目录中并没有发现redis.conf文件。其实homebrew在安装时,默认把redis.conf文件放到了 /usr/local/etc/redis.conf 

这时候我们只要执行如下命令 redis-server /usr/local/etc/redis.conf ,即可配置redis. conf文件了,然后重新启动:

此时显示,配置文件已加载。

原文地址:https://www.cnblogs.com/huiAlex/p/8185817.html