View mac / windows / linux port usage

This article mainly records the port occupancy of the three systems of mac / windows / linux

mac

lsof -i tcp:15740

kill <端口号>

Linux

lsof -i tcp:15740

kill -9 <端口号>
netstat -tunlp | grep 端口号
netstat -tunlp | grep 15740

kill -9 <端口号>

windows

netstat -ano
netstat -aon|findstr "15740"

taskkill /T /F /PID <端口号>

Guess you like

Origin blog.csdn.net/Orange_hhh/article/details/128183892