以root账号运行: ps -aux|grep -v grep|grep demo|awk '{print $2}'|xargs lsof -p|awk '{print $9}' 或者: ls /proc/{进程号}/fd