当前位置:网站首页>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
边栏推荐
- Analysis of the relationship between generalized Bim and CAD under the current background
- Three. Based on ply format point cloud voxel model JS upload interface writing
- Markdown < a > tag new page open link
- 一. js的深拷贝和浅拷贝
- Customize timeline component styles
- go-zero框架数据库方面避坑指南
- LeetCode 20、有效的括号
- A login and exit component based on token
- Install MySQL 5.0 under Linux 64bit 6 - the root password cannot be modified
- Matlab analytic hierarchy process to quickly calculate the weight
猜你喜欢
Rt-1052 learning notes - GPIO architecture analysis
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
Commande dos pour la pénétration de l'Intranet
Commit and rollback in DCL of 16 MySQL
堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
Go zero framework database avoidance Guide
An error is reported when sqoop imports data from Mysql to HDFS: sqlexception in nextkeyvalue
【PTA】整除光棍
Leetcode 74. Search two-dimensional matrix
Vscode download speed up
随机推荐
Three. Based on ply format point cloud voxel model JS upload interface writing
ABAQUS script email auto notification
Scrapy教程 - (2)寫一個簡單爬蟲
SQL Server Connectors By Thread Pool | DTSQLServerTP 插件使用说明
Some basic knowledge of devexpress report development
Paper writing 19: the difference between conference papers and journal papers
LeetCode 709、转换成小写字母
Scripy tutorial - (2) write a simple crawler
Latest investigation and progress of building intelligence based on sati
RT-1052学习笔记 - GPIO架构分析
Customize timeline component styles
Analysis of the relationship between generalized Bim and CAD under the current background
JS arrow function user and processing method of converting arrow function into ordinary function
bounding box iou
【栈和队列专题】—— 滑动窗口
[graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph
[graph theory brush question-4] force deduction 778 Swimming in a rising pool
An error is reported in the initialization metadata of the dolphin scheduler -- it turns out that there is a special symbol in the password. "$“
Recommend an open source free drawing software draw IO exportable vector graph
LeetCode 232、用栈实现队列