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 

 

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