查看端口占用

lsof -i:{port}

netstat -anp|grep {port}

终止进程

kill -9 {PID}