linux判断httpd端口是否打开

判断端口是否打开

lsof -i:80

判断端口打开了几个

lsof -i:80 | wc -l

原文地址:https://www.cnblogs.com/effortsing/p/10108247.html