1. 通过ps -ef2. 通过进程号
如果命令 which 和whereis 都找不到安装目录,可使用以下办法
ps -ef|grep redis2. 通过进程号
通过ps -ef得到了进程号 xxxx
然后 ls -l /proc/xxxx/cwd

1. 通过ps -ef2. 通过进程号
如果命令 which 和whereis 都找不到安装目录,可使用以下办法
ps -ef|grep redis2. 通过进程号
通过ps -ef得到了进程号 xxxx
然后 ls -l /proc/xxxx/cwd