在OS上安装,通常要求你是安装了Xcode,并且也安装了homebrew,而后使用brew install redis命令来安装就能够了。 执行命令后,就能够在shell上执行redeis-server来启动redis服务端啦。没有使用任何配置文件的时候,你将会看到下面的提示: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.confredis
也就是说,他使用了默认的配置,若是你想要本身的配置,你能够在redis-server命令后面加入本身的配置文件。shell
在同一台host上,你可使用redis-cli来链接reds-server.code