美文网首页
netstat 找不到命令

netstat 找不到命令

作者: 慕知 | 来源:发表于2021-01-15 13:46 被阅读0次
报错
[root@stars ~]# netstat -an | grep -iw "listen"
-bash: netstat: command not found
解决思路
[root@stars ~]# yum search netstat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.njupt.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirrors.njupt.edu.cn
============================= Matched: netstat ==============================
dstat.noarch : Versatile resource statistics tool
net-snmp.x86_64 : A collection of SNMP protocol tools and libraries
net-tools.x86_64 : Basic networking tools


通过yum search 这个命令发现netstat这个命令是在net-tools.x86_64这个包里
接下来下载这个包即可

[root@stars ~]# yum install -y net-tools.x86_64 


再次执行命令
[root@stars ~]# netstat -an | grep -iw "listen"
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN     
tcp6       0      0 :::22                   :::*                    

相关文章

  • netstat 找不到命令

    报错 解决思路

  • Linux命令: netstat

    netstat命令 Linux netstat 命令用于显示网络状态。利用 netstat 指令可让你得知整个 L...

  • 找不到netstat(安装netstat)

    安装net-tools即可 安装ping命令

  • Linux查看端口占用情况

    lsof命令 格式:“lsof -i:端口号” netstat命令 格式:“netstat -tunlp | gr...

  • netstat命令

    netstat作用:查看Linux中网络系统状态信息,netstat命令 用来打印Linux中网络系统的状态信息,...

  • netstat命令

    本文转载自(http://www.cnblogs.com/ggjucheng/archive/2012/01/08...

  • netstat命令

    netstat --route, -rDisplay the kernel routing tables显示内核路...

  • netstat命令

    Netstat命令用于显示各种网络相关信息,如网络连接,路由表,接口状态 (Interface Statistic...

  • netstat命令

    一般用-na指令,就是-a和-n的结合。 -a 显示所有socket,包括正在监听的。 -c 每隔1秒就重新显示...

  • netstat命令

    Netstat 命令用于显示各种网络相关信息,如网络连接,路由表,接口状态 (Interface Statisti...

网友评论

      本文标题:netstat 找不到命令

      本文链接:https://www.haomeiwen.com/subject/zbxwaktx.html