Click the start menu, enter cmd, and then press enter.
Enter the stat -an command in the cmd dialog box that appears. You can see the usage of the port.
You can also directly check whether a specific port number is occupied and enter the following command: stat -aon|findstr "port number ". For example, check the usage of port 80: stat -aon|findstr "80 ".
Of course, the stat command does more than that. If you want to know more about the usage of stat, you can enter the stat -help command.
2. How to delete the computer port if it is occupied?
If you find that the port you are using is occupied, you can solve it in the following two ways.
1. First, command CMD to bring up the command window. The program code used to query each port is: stat -ano can list how many ports are used. Find the corresponding port number (the number after the address) and the corresponding PID, and you can close the program or uninstall it. However, it is usually faster to close it by command. Use ntsd -c q -p PID. Here PID is the number ($ NUMBER) corresponding to the port. Usually fill in numbers.
2. You can find the PID using this port through the task manager. Shut down directly (end the task).
3. How to solve the problem that port 80 of computer is occupied?
1. Let's talk about how to find a port occupation first.
stat -ano | findstr ":80 "
Task list /fi "PID eq 4 "
Check the port occupation under 0Windows system.
2. In the above figure, we find that the system occupies port 80. Enter regedit to open the registry at run time.
3. Find HKEY _ local _ machine \ system \ current control set \ service \ http.
4. Find the project Start and change its value to 0.
5. Restart the system, and the system process will not occupy port 80. You can use step 1
4. How to check which program occupies all the ports of the computer?
1. Enter cmd in Start-Run and press Enter to open the Run window.
2. Enter stat -ano enter at the prompt to find the pid corresponding to tcp 80 port, such as 1484.
The above is not clear and concise:
If we need to determine who is occupying our port 80.
1, Windows platform
Execute in a windows command line window:
C:\stat -aon|findstr 80 "
TCP127.0.01:800.0.0: 0 Monitoring 2448
Look, the port is occupied by the process with process number 2448. Continue with the following command:
C:\tasklist|findstr 2448 "
Thread.exe 2016 console 0 16064K
Very clear, isn't it? Thread is occupying your port, kill it.
If the second step cannot be found, open the task manager to see which process is 2448, and then kill it.
If you need to see other ports. Just change 80 to another port.
5. How to check which ports of your computer are occupied?
& lt connector
Port ="8080 "
maxHttpHeaderSize="8 192 "
maxThreads=" 150 "
minSpareThreads="25 "
maxSpareThreads="75 "
enableLookups="false "
Redirect port ="8443 "
acceptCount=" 100 "
connectionTimeout="20000 "
disableUploadTimeout="true" /
Such a piece of code, change the port's 8080 to another port, just restart Tomcat, it is recommended to change it to 9000. This port is not occupied by other programs.
The PS:8080 port is generally occupied because Tomcat, the built-in HTTP service of Oracle, occupies 8080 port and can be stopped in service management.
6. If the computer program port is occupied, how to solve it?
I. Start-> ; Run-> Cmd, input stat-o-an;
Second, open the windows Task Manager and view-> ; Select the column to check pid;
Third, find the pid that the process occupies 80 ports and solve it.
Questioner's question 2009-09-24 2 1:47pid is 1324. How to solve it? Addendum for Respondents 2009-09-24 2 1:55 The wrong program can be found in the following ways:
Right-click the taskbar-> Task Manager-> Process-> and find the program with PID value of 1324. This is the wrong program.
It may be a compatibility problem or a virus.
I suggest you delete this program and reinstall it.
There are several reasons:
1. You may have accidentally deleted some files during cleaning.
2. When deleting unwanted things in the control panel, it is deleted in the disk in advance, so it cannot be deleted normally.
This may be caused by virus.
Solution:
1. Reinstall the system (the computer can't be used, and some can't be opened)
2. Antivirus (Rising, Jinshan)
3. Memory problem (remove and reinstall)
If you want to delete content in the future, please work in the control panel.
5. Delete files by path
6. Change the file path (you may have moved the file)
7. Enter msconfig during the operation, and then select Start. Cancel loading
If you are satisfied with my answer, you can choose my answer. Thank you.
7. How to solve the problem of computer port occupation?
When we use eclipse or myeclipse software to do projects, we often encounter such and such problems at the beginning, which makes our head big, such as port occupation is one of them.
Click the start program in the lower left corner of the computer or press the shortcut key Ctrl+R to enter the running interface.
Then you can see the running interface window.
Then enter the cmd command in the running interface.
So you can enter the Dos window.
Then, if the occupied port number is "8080" (the default port number of Tomcat), we need to input the command in the Dos interface: STAT-AON | Findstr "8080".
After entering the command, we can see the following effect.
So we got the process number "3256"!
After getting the process number, we enter the task list | findstr“3256 "command, and then we get the process image name javaw.exe.
This step can solve the problem! There are many ways to open the Task Manager.
The shortcut key Ctrl+Alt+Delete finds the javaw.exe process and kills it.