当前位置:网站首页>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
边栏推荐
- Actual measurement of automatic ticket grabbing script of barley network based on selenium (the first part of the new year)
- Leetcode 74. Search two-dimensional matrix
- Rt-1052 learning notes - GPIO architecture analysis
- The problem of 1 pixel border on the mobile terminal
- go-zero框架数据库方面避坑指南
- Imitation Baidu map realizes the three buttons to switch the map mode by automatically shrinking the bottom
- Numpy Index & slice & iteration
- JDBC database addition, deletion, query and modification tool class
- 內網滲透之DOS命令
- A useless confession artifact
猜你喜欢
Solution: NPM err! code ELIFECYCLE npm ERR! errno 1
DNS cloud school rising posture! Three advanced uses of authoritative DNS
Actual measurement of automatic ticket grabbing script of barley network based on selenium (the first part of the new year)
JDBC tool class jdbcfiledateutil uploads files and date format conversion, including the latest, simplest and easiest way to upload single files and multiple files
【PTA】L1-002 打印沙漏
DNS cloud school | analysis of hidden tunnel attacks in the hidden corner of DNS
C migration project record: modify namespace and folder name
Commit and rollback in DCL of 16 MySQL
16MySQL之DCL 中 COMMIT和ROllBACK
Click an EL checkbox to select all questions
随机推荐
The market share of the financial industry exceeds 50%, and zdns has built a solid foundation for the financial technology network
黑客的入侵方式你知道几种?
Mysql database backup scheme
Devaxpress report replay: complete the drawing of conventional two-dimensional report + histogram + pie chart
bounding box iou
堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
SQL Server connectors by thread pool 𞓜 instructions for dtsqlservertp plug-in
內網滲透之DOS命令
Go zero framework database avoidance Guide
[problem solving] 'ASCII' codec can't encode characters in position XX XX: ordinal not in range (128)
SQL: query duplicate data and delete duplicate data
LeetCode 20、有效的括号
Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 64
LeetCode 1351、统计有序矩阵中的负数
Identification of bolt points in aerial photography based on perception
PostgreSQL basic functions
Devexpress 14.1 installation record
Analysis of the relationship between generalized Bim and CAD under the current background
I JS deep copy and shallow copy
高薪程序员&面试题精讲系列91之Limit 20000加载很慢怎么解决?如何定位慢SQL?