针对centos6
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
- install EPEL/NTOP repo
# cd ~
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
# cd /etc/yum.repos.d/
# wget http://packages.ntop.org/centos/ntop.repo -O ntop.repo
- install Redis
# yum install redis hiredis
- install the application
# yum clean all
# yum update
# yum install pfring n2disk nprobe ntopng ntopng-data cento nbox
- enable auto startup
# chkconfig redis on
# chkconfig ntopng on
- configure firewall
# iptables -A INPUT -m state -state NEW -m tcp -p tcp -dport 3000 -j ACCEPT
# iptables -A INPUT -m state -state NEW -m tcp -p tcp -dport 6379 -j ACCEPT
# service iptables save
# service ipbtales restart
- create configuration file
# cd /etc/ntopng/
# vim ntopng.start
--local-network "172.17.0.0" #指定本地网段
--interface 0 #指定监控的网卡
# cd /usr/local/etc
# mkdir ntopng
# cd ntopng
# vim ntopng.pid
--G=/var/run/ntopng.pig
- run the application
# service redis start
# service ntopng start
- testing
在浏览器中 打开 x.x.x.x:3000 用户名和密码都是 admin 首次登陆需要修改密码