xxhjkl
0D
V2EX  ›  问与答

centos 7 下怎么看端口流量

  •  
  •   xxhjkl · Nov 7, 2015 · 7005 views
    This topic created in 3865 days ago, the information mentioned may be changed or developed.
    RT LZ 和小伙伴们合租了一台 linode 的服务器最近搞了个 centos 7 搞了锐速和 SS 来翻

    然后想看一下各个端口的流量情况。
    yum install iptraf
    提示安装成功以后
    执行 iptraf

    [root@localhost ~]# iptraf
    -bash: iptraf: command not found

    whereis 看一下的话
    [root@localhost ~]# whereis -b iptraf
    iptraf:

    似乎是没安装。死循环了
    换了一个工具
    iftop
    直接执行也是 not found
    如果 yum 安装 就提示没有

    so centos7 该怎么看端口流量。
    7 replies    2019-10-29 10:46:07 +08:00
    ryd994
        1
    ryd994  
       Nov 7, 2015 via Android
    yum install epel-release
    再装就可以了
    另外我一般用 jnettop
    shierji
        2
    shierji  
       Nov 7, 2015
    你是没 sbin 目录权限?换 root 试试?
    xxhjkl
        3
    xxhjkl  
    OP
       Nov 7, 2015
    @shierji [root@localhost ~]# 肯定是 root 用户啊
    branchzero
        4
    branchzero  
       Nov 7, 2015
    一楼正解,
    先装 epel ,再装 iftop ,官方仓库没这玩意。
    asdf1234yu
        5
    asdf1234yu  
       Dec 4, 2017
    楼主这个需求解决了吗 怎样看端口总流量 不是实时的那种?
    xxhjkl
        6
    xxhjkl  
    OP
       Dec 4, 2017
    @asdf1234yu #5 有个开源的 ssr 的管理脚本可以实现我的需求。所以就没有研究下去了
    Apol1oBelvedere
        7
    Apol1oBelvedere  
       Oct 29, 2019
    @xxhjkl 脚本网址方便分享一下吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2806 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 12:15 · PVG 20:15 · LAX 05:15 · JFK 08:15
    ♥ Do have faith in what you're doing.