Current location - Quotes Website - Collection of slogans - How to clear the existing port number of linux?
How to clear the existing port number of linux?
You should mean to close the service corresponding to the existing port. Port mapping service. If you want to close the port, you should stop the corresponding service.

1. Find the service pid number corresponding to the port.

Netstat -anlp| grep port number

2. In the last column of the above command, the pid number of the application corresponding to the port will be given.

Kill -9 pid can close the service and close the port.