which 和whereis 都找不到安装目录
ps -ef|grep redis
得到了进程号 xxxx
root 19711 1 0 16:58 ? 00:00:00 ./redis-server 127.0.0.1:6379
root 20699 18972 0 17:01 pts/1 00:00:00 ./redis-cli
root 22149 22123 0 17:06 pts/3 00:00:00 grep --color=auto redis
然后 ls -l /proc/19711/cwd