• Linux系统如何查看服务器带宽及网络使用情况


    最近使用服务器,需要一个监控带宽的东西,很不错,需要服务器可以问我,可以优惠

     linux查看服务器带宽具体方法

      一、使用speedtest-cli命令查看下载和上传最大流量值

    因为命令是python的,所以,需要先下载一个python,用pip下载次命令;

    yum -y install python-pip

    #等待下载完

    pip install speedtest-cli

     

    root@cs:[/root]speedtest-cli

    Retrieving speedtest.net configuration...

    Testing from China Unicom (125.119.20.3)...

    Retrieving speedtest.net server list...

    Selecting best server based on ping...

    Hosted by China Telecom TianJin-5G (TianJin) [123.83 km]: 47.213 ms

    Testing download speed................................................................................

    Download: 16.36 Mbit/s

    Testing upload speed................................................................................................

    Upload: 18.58 Mbit/s

    二、查看网卡、网络的详情

       1.查看服务器网络端口

    ifconfig

     

    2.ethtool命令查看宽带大小

    ethtool 网卡名称

    [root@222 ~]# ethtool eno1

    Settings for eno1:

    Supported ports: [ TP ]

    Supported link modes:   10baseT/Half 10baseT/Full

                            100baseT/Half 100baseT/Full

                            1000baseT/Full

    Supported pause frame use: No

    Supports auto-negotiation: Yes

    Supported FEC modes: Not reported

    Advertised link modes:  10baseT/Half 10baseT/Full

                            100baseT/Half 100baseT/Full

                            1000baseT/Full

    Advertised pause frame use: No

    Advertised auto-negotiation: Yes

    Advertised FEC modes: Not reported

    Speed: 100Mb/s

    Duplex: Full

    Port: Twisted Pair

    PHYAD: 1

    Transceiver: internal

    Auto-negotiation: on

    MDI-X: off (auto)

    Supports Wake-on: pumbg

    Wake-on: g

    Current message level: 0x00000007 (7)

           drv probe link

    Link detected: yes

    Speed: 100Mb/s 带宽为白兆

      三、nload命令实时统计网卡带宽使用率

    没有nload命令的需要下载;

    yum -y install nload

    #等待下载完

    #直接使用命令查看

    nload

     #指定网卡进入 nload eno1

     

     Incoming是进入网卡的流量,Outgoing是从这块网卡出去的流量,每一部分都有下面几个。

    Curr:当前流量
    Avg:平均流量
    Min:最小流量
    Max:最大流量
    Ttl:总流量

      四、dstat -n命令实时监测网络的状态

    dstat -n

     

  • 相关阅读:
    uniapp公共css
    【信号加密】基于傅里叶变换和小波变换对音频水印的嵌入、提取matlab代码
    前后端分离架构的特点分别是什么?
    如何获取淘宝商品快递费用的API接口
    HashMap源码解析(jdk1.8,万字大章,图文并茂)
    Java中OutputStream.flush()具有什么功能呢?
    【系统设计系列】异步和网络通信
    Java+vue生成报纸排版新闻页面
    自动驾驶系列(二)——环境感知之行人检测技术
    2022极端高温!人工智能如何预测森林火灾?| 万物AI
  • 原文地址:https://blog.csdn.net/m0_72838865/article/details/126931741