Linux服务器---流量监控ntop

简介: Ntop      Ntop是一款类似于sniffer的流量监控工具,它显示出的流量信息比mrtg更加详细。1、安装一些依赖软件      [root@localhost bandwidthd]# yum install -y gcc libpcap-devel libpcap libtool automake autoconf gdbm gdbm-devel libevent libevent-devel rrdtool rrdtool-devel zlib zlib-devel2、安装geoip软件,此软件有多个依赖,可以在https://centos.pkgs.org下载。
Ntop
      Ntop是一款类似于sniffer的流量监控工具,它显示出的流量信息比mrtg更加详细。
1、安装一些依赖软件
      [root@localhost bandwidthd]#  yum install -y gcc libpcap-devel libpcap libtool automake autoconf gdbm gdbm-devel libevent libevent-devel rrdtool rrdtool-devel zlib zlib-devel

2、安装geoip软件,此软件有多个依赖,可以在https://centos.pkgs.org下载。几个rpm包要同时安装
      [root@localhost wj]#  rpm -ivh GeoIP-1.6.9-2857.el6.art.i686.rpm GeoIP-GeoLite-data-2017.05-1.el6.art.noarch.rpm GeoIP-GeoLite-data-extra-2017.05-1.el6.art.noarch.rpm geoipupdate-2.2.2-2.el6.art.i686.rpm  
      Preparing...                ########################################### [100%]
         1:GeoIP-GeoLite-data-extr########################################### [ 25%]
         2:GeoIP-GeoLite-data     ########################################### [ 50%]
         3:geoipupdate            ########################################### [ 75%]
         4:GeoIP                  ########################################### [100%]


3、下载ntop软件(https://sourceforge.net/projects/ntop/files/ntop/ntop-4.0.1/ntop-4.0.1.tar.gz/download)

4、解压bandwidthd。
      [root@localhost ~]#  tar -xzvf ntop-4.0.1.tar.gz

5、安装。ntop需要进行编译安装,首先要执行autogen.sh文件,生成makefile,然后在编译、安装
      [root@localhost ntop-4.0.1]# . /autogen.sh
      [root@localhost ntop-4.0.1]#  make
      [root@localhost ntop-4.0.1]#  make install

6、配置防火墙,增加tcp的3000端口
      [root@localhost GeoIP-1.4.8]#  gedit /etc/sysconfig/iptables
       -A INPUT -m state --state NEW -m tcp -p tcp --dport 3000 -j ACCEPT

      [root@localhost GeoIP-1.4.8]#  service iptables restart
      iptables:将链设置为政策 ACCEPT:filter nat                [确定]
      iptables:清除防火墙规则:                                 [确定]
      iptables:正在卸载模块:                                   [确定]
      iptables:应用防火墙规则:                                 [确定]
      iptables:载入额外模块:nf_conntrack_ftp                   [确定]

7、启动ntop
      [root@localhost GeoIP-1.4.8]#  /usr/local/bin/ntop -d -L -u root -P /usr/local/var/ntop --skip-version-check --use-syslog=daemon

8、在浏览器输入“127.0.0.1:3000”打开ntop。
      
相关文章
|
6天前
|
Java Linux
Springboot 解决linux服务器下获取不到项目Resources下资源
Springboot 解决linux服务器下获取不到项目Resources下资源
|
10天前
|
Linux
linux下搭建tftp服务器教程
在Linux中搭建TFTP服务器,需安装`tftp-server`(如`tftpd-hpa`)。步骤包括:更新软件包列表,安装`tftpd-hpa`,启动并设置开机自启,配置服务器(编辑`/etc/default/tftpd-hpa`),添加选项,然后重启服务。完成后,可用`tftp`命令进行文件传输。例如,从IP`192.168.1.100`下载`file.txt`: ``` tftp 192.168.1.100 <<EOF binary put file.txt quit EOF ```
22 4
|
24天前
|
Linux Shell 网络安全
【Shell 命令集合 网络通讯 】Linux 与SMB服务器进行交互 smbclient命令 使用指南
【Shell 命令集合 网络通讯 】Linux 与SMB服务器进行交互 smbclient命令 使用指南
40 1
|
2天前
|
Linux 数据安全/隐私保护
Linux基础与服务器架构综合小实践
【4月更文挑战第9天】Linux基础与服务器架构综合小实践
225 6
|
14天前
|
Ubuntu Linux 虚拟化
【Linux】ubuntu安装samba服务器
【Linux】ubuntu安装samba服务器
|
15天前
|
Linux
Linux安装bind9搭建自己的域名服务器
Linux安装bind9搭建自己的域名服务器
10 0
|
17天前
|
网络协议 Linux 网络安全
Linux服务器DNS服务器配置实现bind的正向解释和反向解释
Linux服务器DNS服务器配置实现bind的正向解释和反向解释
17 0
|
24天前
|
网络协议 安全 Shell
【Shell 命令集合 系统设置 】Linux 从远程时间服务器获取当前日期和时间 rdate命令 使用指南
【Shell 命令集合 系统设置 】Linux 从远程时间服务器获取当前日期和时间 rdate命令 使用指南
31 0
|
24天前
|
Shell Linux 网络安全
【Shell 命令集合 网络通讯 】Linux 管理Apache HTTP服务器 httpd命令 使用指南
【Shell 命令集合 网络通讯 】Linux 管理Apache HTTP服务器 httpd命令 使用指南
28 0
|
24天前
|
Shell Linux Apache
【Shell 命令集合 网络通讯 】Linux 管理Apache HTTP服务器 apachectl命令 使用教程
【Shell 命令集合 网络通讯 】Linux 管理Apache HTTP服务器 apachectl命令 使用教程
154 1