windows、linux使用查看、杀死进程

windows10查看某个进程:

netstat -ano | findstr  端口号

杀死某个进程:

taskkill /f  /pid  进程号

linux查看占用端口的进程:

netstat -apn | grep 进程号

netstat -nltp | grep  进程号

杀死进程:

kill -9 要杀死的进程

原文地址:https://www.cnblogs.com/flypig666/p/11901780.html