Centos7默认不安装netstat组件,需要使用时需要自己安装。
1.查看当前机器net-tools包所在位置
2.安装net-tools包
3.使用netstat命令查看端口占用情况
4.查看指定端口