php安装redis扩展全

一、安装redis

mac 下安装也可以使用 homebrew,homebrew 是 mac 的包管理器。

1、执行 brew install redis

2、启动 redis,可以使用后台服务启动 brew services start redis。或者直接启动:redis-server /usr/local/etc/redis.conf

Mac安装和使用Redis重要命令如下:

1.使用home-brew一键安装:`brew install redis`
2.启动Redis服务:`brew services start redis` 或` redis-server /usr/local/etc/redis.conf`  
3.关闭Redis服务:'brew services stop redis' 
4.重启Redis服务:`brew services restart redis`
5.打开图形化界面:`redis-cli`
brew services list // 查看homebrew安装的服务

原文地址:https://www.cnblogs.com/cjjjj/p/9846481.html