Mac 下查看端口是否被占用 1. Mac lsof -i :8080 2. CentOS netstat -anp tcp | grep 8080 3. nc -w 10 -n -z 127.0.0.1 8070-8090