1、先查看进程pid ps -ef | grep 进程名 2、通过pid查看占用端口 netstat -nap | grep 进程pid 3。通过端口查看进程 netstat -nap | grep 端口号