Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to implement bandwidthd for Traffic Monitoring in Linux Server

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, Xiaobian will bring you about how to implement traffic monitoring bandwidthd on Linux servers. The article is rich in content and analyzes and narrates from a professional perspective. After reading this article, I hope you can gain something.

Bandwidthd

Bandwidthd is a free traffic monitoring software, it can use icons to show network traffic behavior, and can distinguish ftp, tcp and other protocols of traffic.

Install some dependent software

[root@localhost bandwidthd-2.0.1]# yum install -y libpng libpng-devel gd gd-devel gcc libpcap-devel

2. Download bandwidthd software (sourceforge.net/projects/bandwidthd/files/bandwidthd/bandwidthd 2.0.1/)

Unzip bandwidthd.

[root@localhost ~]# tar -xzvf bandwidthd-2.0.1.tar.gz

4. Installation. Bandwidthd needs to be compiled and installed. First, execute the configure file to generate makefile, and then compile and install it.

[root@localhost bandwidthd-2.0.1]# ./ configure

[root@localhost bandwidthd-2.0.1]# make

[root@localhost bandwidthd-2.0.1]# make install

5. Modify the configuration file "/usr/local/bandwidthd/etc/bandwidthd.conf" to set the listening network segment and network card.

[root@localhost bandwidthd-2.0.1]# gedit /usr/local/bandwidthd/etc/bandwidthd.conf

#subnet 10.0.0.0 255.0.0.0

#subnet 192.168.0.0/16

#subnet 172.16.0.0/12

subnet 192.168.0.0/24 to network segments

# Device to listen on

# Bandwidthd listens on the first device it detects

# by default. Run "bandwidthd -l" for a list of

# devices.

dev "eth0" //Listen to NIC

6, establish a link, in the apache web page root directory to establish a link to bandwidthd, so that you can quickly open bandwidthd

[root@localhost bandwidthd-2.0.1]# cd /var/www/html/

[root@localhost html]# ln -s /usr/local/bandwidthd/htdocs bandwidthd

7. Start bandwidthd

[root@localhost html]# cd /usr/local/bandwidthd/

[root@localhost bandwidthd]# ./ bandwidthd

8. Enter "127.0.0.1/bandwidthd" in the browser to open bandwidthd. Make sure you have httpd enabled.

9. Set bandwidthd to boot

[root@localhost html]# gedit /etc/rc.local

touch /var/lock/subsys/local

INITTY=/dev/tty[1-8]

for tty in $INITTY; do

setleds -D +num < $tty

done

/usr/local/bandwidthd/bandwidthd

The above is how to achieve traffic monitoring bandwidthd on Linux servers shared by Xiaobian. If there is a similar doubt, please refer to the above analysis for understanding. If you want to know more about it, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report