查看 mac / windows / linux 端口占用情况

本文主要记录 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 <端口号>

猜你喜欢

转载自blog.csdn.net/Orange_hhh/article/details/128183892
今日推荐