查看端口 lsof -i :端口 例如: 我想查看8889端口是否被占用 看到下面有结果说明 8889端口被使用 关闭端口 kill -9 进程ID(PID) 转载于:https://www.cnblogs.com/greenboy/p/4633093.html