how to install ntopng on centos

Install NTOP NG 1.0.1 on CentOS 6.4
Let’s install the latest NTOP, 1.0.1, on CentOS 6.4 by using YUM to make it easy.

Note: NTOP must be installed on a 64-bit operating system.

1. Create a repository for NTOP.
     vi /etc/yum.repos.d/ntop.repo
        [ntop]
        name=ntop packages
        baseurl=http://rpm.ntop.org/$releasever/$basearch/
        enabled=1
        gpgkey=http://www.nmon.net/centos/RPM-GPG-KEY-deri
 
2. Add the EPEL repository, if it doesn’t already exist
    rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

3.  Install the packages.
   yum clean all
   yum update
   yum install pfring n2disk nProbe ntopng


4.Set NTOP to start on boot.
    chkconfig ntopng on
    chkconfig redis on

5. Download the GeoLite databases for GeoIP.
    cd /usr/local/share/ntopng/httpdocs/geoip
    wget http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
    gunzip GeoIPASNum.dat.gz
    wget http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz
     gunzip GeoIPASNumv6.dat.gz
    wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
    gunzip GeoLiteCity.dat.gz
    wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz
    gunzip GeoLiteCityv6.dat.gz

6.Create the NTOP configuration directory and files.
    mkdir /etc/ntopng
    touch /etc/ntopng/ntopng.start
    touch /etc/ntopng/ntopng.conf
    vi /etc/ntopng/ntopng.start
            --local-networks “your subnet here”
            --interface 1
    vi /etc/ntopng/ntopng.conf
            -G=/var/run/ntopng.pid
7.Start the services.
    service redis start
    service ntopng start (Note: At the time of writing “service ntopng stop” did not work.)

8.Browse to the NTOP server address.
    http://yourserveraddress:3000
      username: admin
      password: admin

转载于:https://my.oschina.net/u/154443/blog/158529

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值