1.第一步获取端口号
ps -ef | grep redis
2.获取该进程所在目录
pwdx 21059
3.cd /usr/local/live_scs/Redis
PWDX(1) Linux User’s Manual PWDX(1)
NAME
pwdx - report current working directory of a process
SYNOPSIS
pwdx pids...
pwdx -V
DESCRIPTION
The pwdx command reports the current working directory of a process or processes.