1.在redis下查看安裝目錄redis
若是命令 which 和whereis 都找不到安裝目錄,可以使用如下辦法code
ps -ef|grep redis
獲得了進程號 xxxxblog
而後 ls -l /proc/xxxx/cwd進程