linux 根据端口查进程id

netstat -tpln | grep [port]
kill [port]
下面是windows的
netstat -ano |findstr [port]
taskkill /f /t /im "进程id或者进程名称"

0 个评论

要回复文章请先登录注册