After exiting cmd, the local lockhost can still access

Hits: 0

reason

Because the port is occupied, the access has always been the previous project

Solution

Windows closes the process of a port

Step 1: Query the PID number corresponding to a port

netstat -ano|findstr 4000

Step 2: Close the process according to the PID

taskkill /pid 13180 /F

/F means mandatory
. At this time, you can’t access localhost:4000 again

You may also like...

Leave a Reply

Your email address will not be published.