有网的话

yum install net-tools

没有网,下载rpm文件net-tools-2.0-0.22.20131004git.el7.x86_64.rpm

http://mirror.centos.org/centos/7/os/x86_64/Packages/net-tools-2.0-0.24.20131004git.el7.x86_64.rpm
 rpm -ivh net-tools-2.0-0.22.20131004git.el7.x86_64.rpm

即可

[root@host-51-196-2-149 nettool]# netstat -ntulp|grep 8090
tcp6       0      0 :::8090                 :::*                    LISTEN      8793/java 

```pppoe安装

https://centos.pkgs.org/7/centos-x86_64/rp-pppoe-3.11-7.el7.x86_64.rpm.html

在CentOS release 6.4 (Final)
1、使用yum安装:

yum  install  pppoe


rp-pppoe                                                     x86_64                                                     3.10-11.el6

2、使用rpm安装包安装:

通过RPM 测试安装rp-pppoe-XXX.rpm,找到相关三个依赖包

下载这三个依赖包

rpm安装包官网:http://rpm.pbone.net/

先安装:rpm -ivh  libpcap.x86_64 14:1.4.0-1.20130826git2dbcaa1.el6

下载网址:
https://centos.pkgs.org/6/centos-x86_64/libpcap-devel-1.4.0-4.20130826git2dbcaa1.el6.x86_64.rpm.html

再安装:ppp-2.4.5-10.el6.x86_64.rpm

下载网址:

http://rpm.pbone.net/index.php3/stat/4/idpl/27827711/dir/centos_6/com/ppp-2.4.5-5.el6.x86_64.rpm.html

最后安装:rp-pppoe-3.10-16.el6.x86_64.rpm

下载网址:

http://rpm.pbone.net/index.php3/stat/4/idpl/27828090/dir/centos_6/com/rp-pppoe-3.10-11.el6.x86_64.rpm.html

文章来源于互联网,如有雷同请联系站长删除:netstat命令不可用 安装net-tools 离线 CentOS 安装pppoe

发表评论