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