版权声明:转载请声明原文链接地址,谢谢! https://blog.csdn.net/weixin_42859280/article/details/84890950
centos 7 安装ntopng
1、添加ntopng官方yum源
cd /etc/yum.repos.d/
wget http://packages.ntop.org/centos/ntop.repo -O ntop.repo
2、centos添加epel 7 yum源
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
3、检查系统是否安装zeromq3
rpm -qa | grep zeromq3
如果安装了zeromq3,请先卸载 没有的话,就不用理睬啦!
yum erase zeromq3
4、使用yum命令安装ntopng
yum install pfring-dkms n2disk nprobe ntopng cento
好多次的确认呀!
成功:
5、修改ntopng主配置文件
cd /etc/ntopng/
vim ntopng.conf
原配置文件内容仅有如下一项:
-G=/var/run/ntopng.pid
添加新的配置选项:
-i=ens33
-m=192.168.4.0/24
6、开启redis服务和ntopng服务
service redis start
service ntopng start
关闭防火墙:
测试结果:
另附 centos 6 安装ntopng流程
在第1步之后
2、安装相应的yum源及redis包
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget https://copr.fedoraproject.org/coprs/saltstack/zeromq4/repo/epel-6/saltstack-zeromq4-epel-6.repo
rpm -ivh http://packages.ntop.org/rpm6/extra/hiredis-0.10.1-3.el6.x86_64.rpm http://packages.ntop.org/rpm6/extra/hiredis-devel-0.10.1-3.el6.x86_64.rpm
3、检查zeromq3
rpm -qa | grep zeromq
4、安装ntopng
yum clean all
yum update
yum install pfring-dkms n2disk nprobe ntopng cento
------------------------------------------------------
ntopng官网centos安装文档原文
IMPORTANT
This directory contains nightly builds of 64 bit binary packages for RedHat/CentOS (latest OS version). Please use rpm-stable.ntop.org for stable builds.
In order to use this repository do (as root):
cd /etc/yum.repos.d/
wget http://packages.ntop.org/centos/ntop.repo -O ntop.repo
CentOS 6
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
wget https://copr.fedoraproject.org/coprs/saltstack/zeromq4/repo/epel-6/saltstack-zeromq4-epel-6.repo
rpm -ivh http://packages.ntop.org/rpm6/extra/hiredis-0.10.1-3.el6.x86_64.rpm http://packages.ntop.org/rpm6/extra/hiredis-devel-0.10.1-3.el6.x86_64.rpm
CentOS 7
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
then do:
yum erase zeromq3 (Do this once to make sure zeromq3 is not installed)
yum clean all
yum update
yum install pfring-dkms n2disk nprobe ntopng cento
PF_RING is now packaged without ZC drivers so you can optionally install them:
yum install pfring-drivers-zc-dkms
Most software works without licenses. However some components do need a license. They include:
PF_RING ZC user-space libraries
nProbe (NetFlow/IPFIX probe)
n2disk (packet to disk application)
You can find more info on the ntop site, or acquire licenses on the ntop e-shop.
We remind you that all ntop products are available at no cost to universities and research.
NOTE
If you are a nProbe user and want to install a nprobe package with no dependency, please install the nprobes
(rather than the nprobe) package. Note that you can either install the nprobe or the nprobes package
but NOT both simultaneously.
http://packages.ntop.org/centos/