redis

2020-07-20  本文已影响0人  EnjoyWT

redis

mac,brew安装

1. 启动: 
  1.1 默认配置(后台运行,重启电脑后也会运行,一般用在开发测试阶段)
    brew services start redis
    brew services stop redis 
1.2 自定义配置文件
    启动   redis-server /usr/local/etc/redis.conf
    关闭   redis-cli shutdown

2. 检测是否正常启动
  redis-cli ping
  已启动:
  PONG
  关闭
  Could not connect to Redis at 127.0.0.1:6379: Connection refused
上一篇下一篇

猜你喜欢

热点阅读