yum -y install http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
2. Create a repository for NTOP.
vi /etc/yum.repos.d/ntop.repo
[ntop] name=ntop packages baseurl=http://packages.ntop.org/centos/$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://packages.ntop.org/centos/RPM-GPG-KEY-deri [ntop-noarch] name=ntop packages baseurl=http://packages.ntop.org/centos/$releasever/noarch/ enabled=1 gpgcheck=1 gpgkey=http://packages.ntop.org/centos/RPM-GPG-KEY-deri
3. [epel] name=Extra Packages for Enterprise Linux X - $basearch mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-X&arch=$basearch failovermethod=priority enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-X and # cd /etc/yum.repos.d/ # wget https://copr.fedoraproject.org/coprs/saltstack/zeromq4/repo/epel-X/saltstack-zeromq4-epel-X.repo
Note: replace X with 6 (for CentOS 6) or 7 (for CentOS 7) then do:
yum erase zeromq3
(Do this once to make sure zeromq3 is not installed)
yum install zeromq
yum clean all
yum update
yum install pfring n2disk nprobe ntopng ntopng-data nbox
*Note: At this point I had a Transaction Check error because my kernel
was newer than what the ntop compile expected, so I had to install an
older kernel for the yum install to complete. If the above completes
without an error you can skip this step, else grab the older kernel and
try the package install again.
yum -y install kernel-2.6.32.431.20.3.el6
edit config file:
vi /etc/ntopng/ntopng.start
--local-networks "
192.168.0.0/24
"
--interface 0
vi /etc/ntopng/ntopng.conf
-G=/var/run/ntopng.pid
edit firewall
edit firewall
vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3000 -j ACCEPT
chkconfig redis on chkconfig ntopng on
Start the services.
service redis startservice ntopng start
No comments:
Post a Comment