Mac安装Redis

1.查询可安装的版本

1
brew search redis

2.安装redis

1
2
3
brew install redis

brew install redis@3.2

3.卸载redis

1
brew uninstall redis

4.启动redis服务

1
brew services start redis

5.关闭redis服务

1
brew services stop redis

6.重启redis服务

1
brew service restart redis

7.通过bin目录启动

1
2
3
cd /usr/local/Cellar/redis/6.0.8/bin

./redis-server

8.配置开机启动redis

1
ln -sfv /usr/local/opt/redis/*plist ~/Library/LaunchAgents
打赏
  • 版权声明: 本博客所有文章除特别声明外,著作权归作者所有。转载请注明出处!
  • Copyrights © 2015-2021 Movle
  • 访问人数: | 浏览次数:

请我喝杯咖啡吧~

支付宝
微信