If you have built a website server by purchasing a VPS yourself, you may encounter situations where the website server network is very slow. To troubleshoot the issue, we need to use tools like iftop to view the server's traffic information in real-time and determine if there are malicious programs sending network packets. This article documents
Method and usage tutorial for installing iftop on CentOS 7。
CentOS 7 iftop installation tutorial
1. Install EPEL repository Enter the following command to install directly (if you are not yet familiar with using a VPS, please first read
this article.)
yum install epel-release
If the above command fails to install, then use the following command to install manually
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
2. Install iftop
yum install iftop
iftop usage tutorial
After installing iftop, simply enter iftop to launch it, and you will see the interface as shown in the image below:

In the image above, the content at the bottom is as follows:
- TX: Sent traffic
- RX: Received traffic
- TOTAL: Total traffic
- rates: Represent the average traffic over the past 2s, 10s, and 40s, respectively
<= and => indicate the direction of traffic. Press the 'h' key on the keyboard to bring up help, as shown in the image below:

For a more detailed iftop tutorial, you can refer to
this article by Wuya。
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.