netstat命令不可用,安装net-tools
有本地yum源或可连外网的yum源:直接yum安装
yum install net-tools
没有外网或本地yum源,下载rpm文件
如:net-tools-2.0-0.22.20131004git.el7.x86_64.rpm
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/net-tools-2.0-0.25.20131004git.el7.x86_64.rpm
下载地址:
Download
Type | URL |
---|---|
Mirror | mirror.centos.org |
Binary Package | http://mirror.centos.org/centos/7/os/x86_64/Packages/net-tools-2.0-0.25.20131004git.el7.x86_64.rpm |
Source Package | http://vault.centos.org/7.9.2009/os/Source/SPackages/net-tools-2.0-0.25.20131004git.el7.src.rpm |
在线或者有本地yum源安装命令
Install Howto
Install net-tools rpm package:
# yum install net-tools
下载rpm包后离线安装命令
rpm -ivh net-tools-2.0-0.22.20131004git.el7.x86_64.rpm