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.