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

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

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

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

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

 

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

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

 

相关文章:

  • 2022-01-21
  • 2021-07-21
  • 2021-11-27
  • 2021-09-26
  • 2021-06-29
  • 2022-12-23
  • 2022-01-21
猜你喜欢
  • 2021-11-28
  • 2022-12-23
  • 2021-04-30
  • 2021-04-11
  • 2021-05-01
  • 2021-09-30
  • 2022-12-23
相关资源
相似解决方案