Current location - Quotes Website - Team slogan - How to view port status and port occupancy?
How to view port status and port occupancy?
When building a web platform, many people will encounter the situation that a certain port is occupied. If you want to see which program occupies a port and can complete it, or you want to see other open ports, you can use the following methods (the command is in red font): \x0d\ View port status: \x0d\ Enter cmd at start-run, and enter netstat-an; at the command line window; See that the port behind the monitor is an open port. If you want to see more information, you can enter netstat-help;; Check the help. \x0d\ Check which program is occupied by a port: method 1: \x0d\ 1. Enter cmd in Start-Run to open the run window. \x0d\2。 Enter netstat -ano at the prompt to find the pid corresponding to tcp 80 port, such as 1484. \x0d\3.ctrl+alt+del Open the Task Manager and select a process. How to find many running programs here? Don't worry about the above view-select the column before PID (process identifier)-tick. Ok, the following processes all start with PID number. At this time, the PID found in the previous step is useful. Find 1484, such as PEER.EXE, and end the process. At this time, open the server again and see that the WEB can be started! Method 2: execute: \ x0d \ c: \ netstat-aon | findstr "80" \ x0d \ TCP127.0.0.1:800.0.0: 0Listening 2448 \ x0d. X0d \ c: \ tasklist | findstr "2448" \ x0d \ thread.exe 2016consconsole 016064k \ x0d \ Obviously the thread has occupied your port, kill it \ x0d \ If it is not found in the second step, \ x0d \