netstat
1.find help
netstat -h
2.find all port
netstat -an
3. Find ports and specific exe files.
netstat -ab
4. All executable programs and ports
netstat -abn
5. A program uses the pid corresponding to the port, 1029 is the port number.
netstat -aon|findstr 1029
6. Kill the process
C:\Documents and Settings\Administrator>netstat -ano|findstr 5152
TCP 127.0.0.1:5152 0.0.0.0:0 LISTENING 684
C:\Documents and Settings \Administrator>taskkill /f /pid 684
Success: Process with PID 684 terminated.
7.tasklist: To further check which program it is, you can go to the task manager to see it, or you can use the command.
You can directly use the pid to find the program
tasklist|findstr 4452
Reference: http://xiaoxinshome.iteye.com/blog/811078
OS & linux
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326529293&siteId=291194637
Ranking