netstat命令不可用,安装net-tools
netstat命令不可用,安装net-tools
有本地yum源或可连外网的yum源:直接yum安装
yum install net-tools
没有外网或本地yum源,下载rpm文件
如:net-tools-2.0-0.22.20131004git.el7.x86_64.rpm
wget https://centos.pkgs.org/7/centos-x86_64/net-tools-2.0-0.22.20131004git.el7.x86_64.rpm.html
安装即可:
rpm -ivh net-tools-2.0-0.22.20131004git.el7.x86_64.rpm