Test Notes: Turn off programs take up the port

In a recent test environment to start the service, an error occurs (the port is occupied):

[FATA] listen tcp 127.0.0.1:6623: bind: address already in use

 

Now we need to vacate the port

1, View occupy the port of PID program

 lsof -i: 6623 # in front of the port there is a colon ":" Do not leak

2, close occupy the port according to PID program

kill -9 {PID}

 

Guess you like

Origin www.cnblogs.com/testeyes/p/11387970.html