查看端口被哪个进程占用

lsof -i :22 知道22端口被哪个进程占用

netstat -lnp|grep 7000 查看7000端口被哪个进程占用

lsof命令详解

参考https://www.cnblogs.com/sparkbj/p/7161669.html

原文地址:https://www.cnblogs.com/z-x-y/p/10285533.html