1.在redis下查看安装目录redis
若是命令 which 和whereis 都找不到安装目录,可以使用如下办法code
ps -ef|grep redis
获得了进程号 xxxxblog
而后 ls -l /proc/xxxx/cwd进程