当前位置:网站首页>查看端口占用情况
查看端口占用情况
2022-07-29 09:16:00 【海是倒过来的天呀】
1、netstat -ano //查看所有端口
2、netstat -ano|findstr 8080 //找到某个端口
3、taskkill /pid 8080 -t -f //杀死pid为8080的进程,-t表示终止指定的进程和由它启用的子进程,-f表示强制终止
netstat -ano 详解

状态含义:
LISTENING:侦听来自远方的TCP端口的连接请求
SYN-SENT:再发送连接请求后等待匹配的连接请求
SYN-RECEIVED:再收到和发送一个连接请求后等待对方对连接请求的确认
ESTABLISHED:代表一个打开的连接
FIN-WAIT-1:等待远程TCP连接中断请求,或先前的连接中断请求的确认
FIN-WAIT-2:从远程TCP等待连接中断请求
CLOSE-WAIT:等待从本地用户发来的连接中断请求
CLOSING:等待远程TCP对连接中断的确认
LAST-ACK:等待原来的发向远程TCP的连接中断请求的确认
TIME-WAIT:等待足够的时间以确保远程TCP接收到连接中断请求的确认
CLOSED:没有任何连接状态
补充:
DOS里边查看某个命令的详细用法:
命令 /?
比如:taskkill /? 回车会显示如下

边栏推荐
- 状态压缩dp
- The gold content of PMP certificate has been increased again and included in the scope of Beijing work residence permit
- 2022 question bank and answers of operation certificate examination for main principals of hazardous chemical business units
- 数据表示与计算(进制)
- C # use restsharp library to realize post request
- RESTful 风格详解
- Asp graduation project - based on C # +asp Net+sqlserver laboratory reservation system design and Implementation (graduation thesis + program source code) - Laboratory Reservation System
- How does xjson implement four operations?
- I don't know how lucky the boy who randomly typed logs is. There must be a lot of overtime
- Database system design: partition
猜你喜欢

Leetcode:132. split palindrome string II

QMainWindow 详解

How to change MySQL into Chinese

Flowable 高级篇

优秀的Allegro Skill推荐

ERROR 1045 (28000): Access denied for user ‘ODBC‘@‘localhost‘ (using password: NO)

Quick sorting (quick sorting) (implemented in C language)

One click automated data analysis! Come and have a look at these treasure tool libraries

On the charm of code language

【机器学习】朴素贝叶斯代码练习
随机推荐
网络原理笔记(五层网络)
[unity entry program] collection of common learning websites
Redis series 3: highly available master-slave architecture
Using logistic regression and neural network to deal with complex binary classification problems
Parameter initialization
Leetcode question brushing (6)
不同数据库相同字段查不重复数据
多重背包,朴素及其二进制优化
(Video + graphic) introduction to machine learning series - Chapter 3 logical regression
LeetCode刷题(6)
The gold content of PMP certificate has been increased again and included in the scope of Beijing work residence permit
State compression DP
[C language] DataGridView binding data
Acwing game 59 [End]
The biggest upgrade of Bluetooth over the years: Bluetooth Le audio is about to appear in all kinds of digital products
md
基于ArkUI eTS开发的坚果新闻(NutNews)
No swagger, what do I use?
Data representation and calculation (base)
2022.7.9 quick view of papers