当前位置:网站首页>Come in and teach you how to solve the problem of port occupation
Come in and teach you how to solve the problem of port occupation
2022-04-23 20:31:00 【Different 213】
List of articles
close windows Port occupied in , Like the ones that we see all the time 8080 The port is occupied , Solve the problem easily in two steps .
One : Find port PID( The following contents are as follows 8080 For example, the port is occupied )
Open the command line tool , Input :netstat -aon|findstr "8080"
Get the information shown in the figure below :
- TCP For the agreement
- 0.0.0.0:8080 For local address
- 0.0.0.0:0 Is the external address
- LISTENING Indicates that the port is listening
- 10224 That's what we're looking for PID
Two : close PID process
Open Task Manager , find PID Corresponding process location , End the process .
As shown in the figure below :
At this point, the problem of port occupation is solved ! Want to continue to learn more about how to query ports PID Problem partner , You can continue to read article 3 .
3、 ... and : netstat command ( Check the port )
netstat Commands are used to display and IP 、TCP 、UDP and ICMP Protocol related statistics , Generally used to check the network connection of each port of the machine , have access to netstat Command to view the ports in the computer .
Use netstat /? You can see netstat All arguments to the command :
The common parameters are as follows :
-a : Show all active tcp Connect , And computer monitoring tcp and udp port .
-e : Displays the number of bytes sent and received by Ethernet 、 Number of digital packets, etc .
-n : Show all active in numeric form only tcp The address and port number of the connection .
-o : Show active tcp Connect and include processes for each connection id.
-s : Display statistics of various connections by protocol , Including port number .
Among them, there are -a 、-n 、-o Especially commonly used .
What we use netstat -aon|findstr "8080"
Orders are based on netstat Command implemented .
findstr yes Window
The system's own commands , The purpose is to find one or more specified files, which contain ( Or through parameters /V To control the exclusion of ) Lines of certain strings , And print out the complete information of the line , Or print the file name where the query string is located .
版权声明
本文为[Different 213]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210550450869.html
边栏推荐
- After route link navigation, the sub page does not display the navigation style problem
- Monte Carlo py solves the area problem! (save pupils Series)
- [PTA] l1-006 continuity factor
- How can matlab obtain the truncated image in trainingimagelabeler
- Customize timeline component styles
- Actual measurement of automatic ticket grabbing script of barley network based on selenium (the first part of the new year)
- On BIM data redundancy theory
- Installation and use of NVM
- PIP installation package reports an error. Could not find a version that satisfies the requirement pymysql (from versions: none)
- ArcGIS js api 4. X submergence analysis and water submergence analysis
猜你喜欢
Recognition of high-speed road signs by Matlab using alexnet
Linux64Bit下安装MySQL5.6-不能修改root密码
BMP JPEG picture to vector image contourtrace
Numpy - creation of data type and array
After route link navigation, the sub page does not display the navigation style problem
RT-1052学习笔记 - GPIO架构分析
A login and exit component based on token
缓存淘汰算法初步认识(LRU和LFU)
LeetCode 542、01 矩阵
Es keyword sorting error reason = fielddata is disabled on text fields by default Set fielddata = true on keyword in order
随机推荐
[PTA] l1-006 continuity factor
Tensorflow 2 basic operation dictionary
PIP installation package reports an error. Could not find a version that satisfies the requirement pymysql (from versions: none)
Sqoop imports tinyint type fields to boolean type
Leetcode 709, convert to lowercase
16MySQL之DCL 中 COMMIT和ROllBACK
Historical track data reading of Holux m1200-e Bluetooth GPS track recorder
Es error: request contains unrecognized parameter [ignore_throttled]
Customize timeline component styles
上海回应“面粉官网是非法网站”:疏于运维被“黑”,警方已立案
LeetCode 116. Populate the next right node pointer for each node
Mysql database and table building: the difference between utf8 and utf8mb4
2022 - Data Warehouse - [time dimension table] - year, week and holiday
LeetCode 20、有效的括号
Three. Based on ply format point cloud voxel model JS upload interface writing
LeetCode 709、转换成小写字母
Investigate why close is required after sqlsession is used in mybatties
LeetCode 1337、矩阵中战斗力最弱的 K 行
Click an EL checkbox to select all questions
CVPR 2022 | querydet: use cascaded sparse query to accelerate small target detection under high resolution