MAC os 使用小技巧 1,mac查看进程占用端口号命令:lsoflsof -i:8080说明:8080是指定要查看的端口号,执行上面命令我们可以看到进程PID号,同理在windows中我们可以netstat -ano来查看所有进程占端口号的信息。