In a Windows environment, use the netstat command to see if a port number is occupied and which process is occupied.
eg, See which program occupies the port number 61078
1, see the port number is 61079 by which PID occupied: Netstat–ano|findstr "< port number >"
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/77/15/wKiom1Zi5B3CFyDoAABXe83umGg876.png "title=" qq.png "alt=" Wkiom1zi5b3cfydoaabxe83umgg876.png "/>
From the results, you can find that port 61078 is occupied by the PID 5576 process.
2, through the PID to find the corresponding process name
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/77/15/wKiom1Zi5QDwS6QXAABXQ_eZh0E895.png "title=" Qq2.png "alt=" Wkiom1zi5qdws6qxaabxq_ezh0e895.png "/>
From the results can be judged that the PID 5576 process named YoukuMediaCenter.exe
3. View the installation directory for the process by using Task Manager
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/77/13/wKioL1Zi5jixqg3OAACOz84jTBg034.png "title=" 36020151205212412373.png "alt=" Wkiol1zi5jixqg3oaacoz84jtbg034.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/77/15/wKiom1Zi5geyYMJUAAFtAOD9t2c644.png "title=" 36020151205212544875.png "alt=" Wkiom1zi5geyymjuaaftaod9t2c644.png "/>
This article is from "I am not a rookie" blog, please be sure to keep this source http://pvbutler.blog.51cto.com/7662323/1719930
Windows finds which program occupies the specified port