具體查看方法如下:
(學習視頻分享:redis視頻教程)
1、在redis下查看安裝目錄
如果命令 which 和whereis 都找不到安裝目錄,可使用以下辦法:
ps?-ef|grep?redis
得到了進程號 xxxx,
然后 ls -l /proc/xxxx/cwd。
2、查看redis-cli 和redis-server的目錄
則使用whereis redis-cli。
3、關閉redis
(1)先進入redis ? ./redis-cli ? 輸入密碼 ? auth ? ‘密碼’。
(2)shutdown。
如果直接在目錄中使用? ./redis-cli shutdown 是關閉不了的。
4、模糊查詢使用find
find?/?-name?redis*
其中: /?指的是根目錄。
相關推薦:redis視頻教程
? 版權聲明
文章版權歸作者所有,未經允許請勿轉載。
THE END
喜歡就支持一下吧
相關推薦