Ntopng工具
Ntopng功能介绍
安装Ntopng
Step1:安装Ntopng
1、下载Ntopng
最新版下载地址https://sourceforge.net/projects/ntop/files/ntopng/
2、安装依赖包
[root@web2 ntopng-1.2.1]# yum install libpcap-devel glib2-devel GeoIP-devel libxml2-devel libxml2-devel redis autoconf automake sqlite-devel
3、编译安装
[root@web2 ~]# cd ntopng-1.2.1
[root@web2 ntopng-1.2.1]# ./autogen.sh
[root@web2 ntopng-1.2.1]# ./configure
[root@web2 ntopng-1.2.1]# gmake geoip
[root@web2 ntopng-1.2.1]# make
[root@web2 ntopng-1.2.1]# make install
4、创建配置文件
[root@web2 ntopng-1.2.1]# mkdir /etc/ntopng
[root@web2 ntopng-1.2.1]# vim /etc/ntopng/ntopng.conf
-G=/var/tmp/ntopng.gid
--local-networks=192.168.1.0/24
--interface=eth0
--user=nobody
--http-port=3000
5、启动redis和ntopng
[root@web2 ntopng-1.2.1]# /etc/init.d/redis start
[root@web2 ntopng-1.2.1]# /usr/local/bin/ntopng /etc/ntopng/ntopng.conf &
http://192.168.1.209:3000
admin:admin

使用yum安装ntopng
官方文档:http://packages.ntop.org/centos-stable/
1、创建Ntopng 安装源
[root@web1 ~]# vim /etc/yum.repos.d/ntop.repo
[ntop]
name=ntop packages
baseurl=http://packages.ntop.org/centos-stable/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://packages.ntop.org/centos-stable/RPM-GPG-KEY-deri
[ntop-noarch]
name=ntop packages
baseurl=http://packages.ntop.org/centos-stable/$releasever/noarch/
enabled=1
gpgcheck=1
gpgkey=http://packages.ntop.org/centos-stable/RPM-GPG-KEY-deri
2、安装yum扩展源
[root@web1 ~]# rpm -Uvh epel-release-6-8.noarch.rpm
3、安装Ntopng
[root@web1 ~]# yum clean all
[root@web1 ~]# yum update
[root@web1 ~]# yum install pfring n2disk nprobe ntopng ntopng-data nbox
本文转自 HMLinux 51CTO博客,原文链接:http://blog.51cto.com/7424593/1752762
网友评论