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/