1. 程式人生 > >Linux CENTOS7 Linux ntopng流量監控、埠監控、服務監控管理系統 安裝過程以及示例!另外附帶CENTOS6的安裝過程!

Linux CENTOS7 Linux ntopng流量監控、埠監控、服務監控管理系統 安裝過程以及示例!另外附帶CENTOS6的安裝過程!

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/