Mac redis 安装 启动

打开终端

 

cd /

安装redis :

     brew search redis

     source /etc/bashrc

启动redis:

     cd /usr/local/bin

     ./redis-server

或者 brew services start redis

关闭 redis 进入到 cd /usr/local/bin
      redis-cli SHUTDOWN

如果启动项目时 出现 ERR Client sent AUTH, but no password is set

则去终端中 输入 redis-cli -p 6379 -h 127.0.0.1

设置密码 config set requirepass 123456 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章