Current location - Quotes Website - Collection of slogans - How to avoid using the already occupied port number in linux programming
How to avoid using the already occupied port number in linux programming
Please check this port before use.

For example, check whether 8080 is occupied.

netstat -anp | grep 8080

If the result is not returned, it is not occupied.

If there is a return result, please change the port and try again.