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

  • 相关阅读:
    斗破苍穹python爬虫
    卷积神经网络
    爬虫进阶
    深度学习TensorFlow
    python爬虫
    面向对象技术分析、设计、实现
    软件过程模型及其优缺点
    数据结构找最优解
    面向对象技术多态
    面向对象技术UML
  • 原文地址:https://www.cnblogs.com/laiyuan/p/8184906.html
Copyright © 2020-2023  润新知