sudo apt-get install build-essential
sudo apt-get install libncurses5-dev libpcap-dev
wget -c https://github.com/raboof/nethogs/archive/v0.8.1.tar.gz
tar xf v0.8.1.tar.gz
cd ./nethogs-0.8.1/
make && sudo make install
安装完输入 nethogs 可查看linux进程的带宽使用
时间: 2024-12-15 01:50:24