linux常用场景命令

1、查看端口占用,并杀死占用该端口的进程:
netstat -tln :查看端口占用情况
lsof -i :port :查看端口被占用的进程id(pid)
kill -s 9 pid:强制杀死指定进程

2、ps -aux|grep ***:查看指定系统进程

猜你喜欢

转载自blog.csdn.net/qq_29468573/article/details/87882023