1. Windows Platform
Run the following command in the Windows console:
Netstat-nao | findstr" 9010"
TCP 127.0.0.1: 9010 0.0.0.0: 0 listening 3017
You can see that a process with a PID of 3017 occupies port 9010. If you want to know its process name, you can use the following command:
Tasklist | findstr" 3017"
If you want to kill the process, you can use the method described earlier to kill it in the task manager. But if you like efficiency, you can use the taskkill command.
Taskkill/PID 3017
Then this process will be wiped out :)
2. Linux
If you are a Linux enthusiast, you should be familiar with this command,
Netstat-Pan | grep 9010
If you are a little more careful, you will find that all the netsta commands are used. In fact, netstat is a common network statistics command, which is applicable to almost all popular operating systems, whether it is a Linux, window, or other UNIX or Unix-like operating system, the usage is basically the same.