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
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
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 :
5-2. Input again ,netstat -aon | findstr 8010 command , Found not used , The effect is as follows :
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 !