查看端口状态 查看端口是否属于活跃状态: netstat -an | grep 8089 查看被占用端口的PID: lsof -i:port(port number) kill进程: # 释放端口 kill -9 $pid