筆記:2018-06-04 redis在mac上安裝

redis命令行操作

redis 在 mac 下的安裝與使用
Mac環境下安裝Redis

Redis安裝的時候報錯:[exception]: Executing test client: couldn't execute "src/redis-benchmark":
make[1]: *** [test] Error 1 make: *** [test] Error 2
解決方案:
make distclean
make
make test

1、啓動redis server:./bin/redis-server etc/redis.conf
查看redis日誌文件:tail -f log-redis.log
2、打開redis客戶端 redis-cli;如果有密碼,可使用 auth password(比如:auth 123456) 做簡單的密碼登錄
3、關閉:在客戶端執行 SHUTDOWN 可關閉 redis 服務,如果關閉不了就加一個參數,執行 SHUTDOWN NOSAVE 可關閉 redis 服務

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