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