Home > Backend Development > PHP Problem > How to close port 8080 in PHP

How to close port 8080 in PHP

王林
Release: 2023-02-25 18:04:01
Original
3632 people have browsed it

How to close port 8080 in PHP

Step one:

Open the start menu, enter CMD in the search box, and press Enter to enter the MS-DOS command window.

Step 2:

Execute the command netstat -ano

-a Display all connections and listening port

-n displays the address and port number in numerical form. This option is generally used in combination with the -a option

-o Displays the process ID associated with each connection.

Active Connection

Protocol Local Address External Address Status PID

TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 1328

It can be seen that the PID of the process occupying port 8080 is 1328.

Step 3

Execute commandtasklist

Image name PID Session name Session# Memory usage

javaw.exe 1328 Console 1 84,944K

It can be seen that the process occupying port 8080 is javaw.exe. It can be seen that the port is now occupied by javaw.exe (related network protocol software of SunMicrosystems). If you want to If it ends, you can go through step four to end the process.

Step 4:

Execute the command: TASKKILL

TASKKILL /IM javaw.exe /F or TASKKILL /PID 1328 /F. Among them, TASKKILL /PID 1328 /F means: end the process with process ID 1328; TASKKILL /IM javaw.exe /F. Means: End the process whose process image name is javaw.exe.

Recommended tutorial: PHP video tutorial

The above is the detailed content of How to close port 8080 in PHP. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template