解决"-bash: netstat: command not found"问题

netstat检查端口的时候有出现"-bash: netstat: command not found"的问题。应该是缺少组件没有安装导致的,开始我还觉得直接yum install netstat就可以了,发现并不是这样的通过查阅资料看到需要这样。

yum install net-tools

集成在net-tools工具包中,这里我们将工具包软件都安装一下这样就可以解决。

原文地址:https://www.cnblogs.com/h-z-y/p/15223693.html