当前位置:网站首页>Check whether the port number is occupied

Check whether the port number is occupied

2022-06-25 15:45:00 Grey wolf's love and sorrow

1. computer system windows10 pro
2. In the process of development , Sometimes the port number of our service may be occupied , Now let me share , stay windows How to check whether the port number is occupied , The solution is , I hope it helped you !
3. Input in the terminal :

netstat -aon | findstr 8010  //8010 Is the port number I want to check , The renderings are as follows 

image.png

 According to this picture , We know that this port number has been occupied , The image above  18612  It's the process number !

4. We can use this process number , See what application uses this port number , The order is as follows :

tasklist|findstr 18612

image.png
5. We can use the application according to the port number , Execute the following command on the terminal to release the port number :

taskkill /f /t /im nginx.exe

5-1. The renderings are as follows :
image.png
5-2. Input again ,netstat -aon | findstr 8010 command , Found not used , The effect is as follows :
image.png
6. The sharing of this issue ends here , Isn't it very nice, I hope it helped you , Let's work together to get to the top !

原网站

版权声明
本文为[Grey wolf's love and sorrow]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202191756039112.html