Find the program path according to the port number lookup process ID

netstat -nlp | grep port number

As shown below, the query 28180 port corresponding process PID-netstat -nlp | grep 28180

8161 is the process to get the PID

Program path and then query command corresponding to the following

ll / proc / process ID / cwd

Guess you like

Origin www.cnblogs.com/noteless/p/11455170.html