Linux 使用 netstats 命令监听端口

netstat -anp | grep httpd

如果 netstat 没有安装,可以运行以下命令安装

yum -y install net-tools # CentOS

apt-get -y install net-tools # Debian

微软官方的介绍 netstat 用法的帮助文档