自己记录,备用。 1、查询进程 ps -a | grep PID 2、查看端口 netstat -a | grep PID 3、杀死进程 kill -9 PID 4、查看进程资源占用情况 top htop(需要手动安装sudo apt install htop)