命令
lsof #查看端口对应的pid,通过kill -9杀死对应的进程
格式
lsof 参数
常用命令
列出所有的网络连接
lsof -i

查看指定端口22的pid
lsof -i :22

查看指定用户打开的应用信息
lsof -u root

转载请注明:XAMPP中文组官网 » lsof 查看对应端口的pid
lsof #查看端口对应的pid,通过kill -9杀死对应的进程
lsof 参数
lsof -i
lsof -i :22
lsof -u root
转载请注明:XAMPP中文组官网 » lsof 查看对应端口的pid