查看8080端口是否被占用
netstat -anp | grep 8080
统计8080端口被占用进程数量
netstat -anp | grep 8080 | grep LISTEN | wc -l
统计8080端口被占用进程数量(清除额外信息)
netstat -anp 2>/dev/null | grep 8080 | grep LISTEN | wc -l
查看8080端口是否被占用
netstat -anp | grep 8080
统计8080端口被占用进程数量
netstat -anp | grep 8080 | grep LISTEN | wc -l
统计8080端口被占用进程数量(清除额外信息)
netstat -anp 2>/dev/null | grep 8080 | grep LISTEN | wc -l