zoukankan      html  css  js  c++  java
  • centos6 安装 ntopng

    针对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   首次登陆需要修改密码

  • 相关阅读:
    C# 微信 生活助手 空气质量 天气预报等 效果展示 数据抓取 (二)
    2014年个人总结
    是去是留?这是个问题
    电信限制ip的解决方案
    机械学习
    mac-mysql
    如何使用代码生成工具
    如何使用自定义表单和自定义流程
    test
    编程小问题001
  • 原文地址:https://www.cnblogs.com/laiyuan/p/8184906.html
Copyright © 2011-2022 走看看