WhenEver you are developing your webapplication and your tomcat server/or any webserver fails to startup saying some
c:\>netstat -a -o //displays all the process with their port and PID
Protocol Local Address :Port Foreign Address State PID
TCP raj:1033 localhost:1034 ESTABLISHED 1692
TCP raj:1034 localhost:1033 ESTABLISHED 1692
TCP raj:2008 localhost:2009 ESTABLISHED 1376
HTTP raj:2541 localhost:12080 ESTABLISHED 1400
Suppose u want to free the port 2541.its pid is 1400
c:\> taskkill /pid 1400 /f //assuming PID=1400 is the process ID using that port /f for forcefully
terminating the service with that PID
for more help
c:\> taskkill /?
c:\> tskill /?
No comments:
Post a Comment