1、
根据进程名称查出进程id
pidof clickhouse(程序名称)
再根据进程id查出该进程所在路径
pwdx 进程id
2.
ps -ef|grep 进程名
lsof -p 进程号
3.
lsof -i:服务端口号
ll /proc/pid/cwd
1、
根据进程名称查出进程id
pidof clickhouse(程序名称)
再根据进程id查出该进程所在路径
pwdx 进程id
2.
ps -ef|grep 进程名
lsof -p 进程号
3.
lsof -i:服务端口号
ll /proc/pid/cwd