netstat, 端口

netstat -ntlp

-n 以网络IP地址代替名称

-t 显示TCP协议的连接情况。

-l 显示监控中的服务器的Socket。

-p 显示正在使用Socket的程序识别码和程序名称。

-a, -all

Show both listening and non-listening sockets. With the -interfaces option, show interfaces that are not marked

   yum install net-tools