1.如果知道服务端口号,可以先看下服务是否在运行 netstat -nltp 2.查询出对应服务的进制 ps -ef | grep redis 3.通过进程号查看服务具体位置 ls -l /proc/4770/cwd