如何查看网络带宽被什么占用

By admin, 13 二月, 2020

nethogs 可以查出占用带宽的进程

lsof 可以查出所有在读写的文件

lsof | grep <nethogs>查到的占用带宽的进程> 可以查出下载哪个文件导致带宽被占用

也可以尝试tail -f /var/log/nginx/access.log

查到扫描的IP后可用fail2ban禁用:fail2ban-client set nginx-404 banip 125.179.20.18

参考:https://www.binarytides.com/linux-commands-monitor-network/

标签

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"