Redis Mac 下如何设置 Redis 开机启动

levi · April 19, 2013 · Last by zhaghe replied at June 16, 2014 · 13020 hits

Rdis 已经正常安装,请问如何开机启用

我用 brew 安装的 redis 一开机就自动运行了 估计你是用官方包安装的吧 那个估计要添加自动启动脚本 具体我还真不清楚呢

brew info redis

/etc/profile?

如果是 brew 装的 像#2 楼 @LarryLv 说的那样 然后把 redis-server /usr/local/etc/redis.conf /etc/rc.local 里面 就 ok 了

Mac 需要关机吗?

#4 楼 @TsingHan 这命令不好使? redis-server /usr/local/etc/redis.conf /etc/rc.local

*** FATAL CONFIG FILE ERROR *** Reading the configuration file, at line 733

'"/etc/rc.local"' Bad directive or wrong number of arguments

You need to Sign in before reply, if you don't have an account, please Sign up first.