当前位置:网站首页>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
边栏推荐
- Alicloud: could not connect to SMTP host: SMTP 163.com, port: 25
- Mathematical modeling column | Part 5: MATLAB optimization model solving method (Part I): Standard Model
- Recommend an open source free drawing software draw IO exportable vector graph
- ArcGIS js api 4. X submergence analysis and water submergence analysis
- Modeling based on catiav6
- DNS cloud school rising posture! Three advanced uses of authoritative DNS
- [PTA] get rid of singles
- Implementation of mypromise
- DOS command of Intranet penetration
- [PTA] l1-006 continuity factor
猜你喜欢
Some basic knowledge of devexpress report development
After route link navigation, the sub page does not display the navigation style problem
DNS cloud school rising posture! Three advanced uses of authoritative DNS
[graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph
Livego + ffmpeg + RTMP + flvjs to realize live video
[PTA] get rid of singles
PIP installation package reports an error. Could not find a version that satisfies the requirement pymysql (from versions: none)
Don't bother tensorflow learning notes (10-12) -- Constructing a simple neural network and its visualization
Recommend an open source free drawing software draw IO exportable vector graph
2022DASCTF Apr X FATE 防疫挑战赛 CRYPTO easy_real
随机推荐
Building the tide, building the foundation and winning the future -- the successful holding of zdns Partner Conference
内网渗透之DOS命令
Rt-1052 learning notes - GPIO architecture analysis
缓存淘汰算法初步认识(LRU和LFU)
【问题解决】‘ascii‘ codec can‘t encode characters in position xx-xx: ordinal not in range(128)
Latest investigation and progress of building intelligence based on sati
【PTA】L2-011 玩转二叉树
[PTA] l2-011 play with binary tree
Development of Matlab GUI bridge auxiliary Designer (functional introduction)
Some basic knowledge of devexpress report development
A useless confession artifact
Paper writing 19: the difference between conference papers and journal papers
Identification of bolt points in aerial photography based on perception
三十一. `prototype`显示原型属性和`__proto__`隐式原型属性
Leetcode 1351. Negative numbers in statistical ordered matrices
Shanghai responded that "flour official website is an illegal website": neglect of operation and maintenance has been "hacked", and the police have filed a case
Numpy mathematical function & logical function
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
Experience of mathematical modeling in 18 year research competition
論文寫作 19: 會議論文與期刊論文的區別