1. 程式人生 > >Centos 7 Ntop 流量分析 安裝

Centos 7 Ntop 流量分析 安裝

Centos 6 安裝 Ntop:https://www.cnblogs.com/weijie0717/p/4886314.html

一、安裝

  1、新增EPEL 倉庫

    # yum install epel-release

  2、建立 Ntop 儲存庫

    # vim /etc/yum.repos.d/ntop.repo    

[ntop]
name=ntop packages
baseurl=http://www.nmon.net/centos-stable/$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.nmon.net/centos-stable/RPM-GPG-KEY-deri
[ntop-noarch] name=ntop packages baseurl=http://www.nmon.net/centos-stable/$releasever/noarch/ enabled=1 gpgcheck=1 gpgkey=http://www.nmon.net/centos-stable/RPM-GPG-KEY-deri

  3、安裝軟體包

    # yum update

    #  yum install ntopng ntopng-data

    # yum install redis php-pecl-redis

  4、Ntop 配置檔案

    /etc/ntopng/ntopng.conf

  5、啟動服務,先啟動redis, 再啟動 Ntop

    # systemctl start redis.service

    # systemctl enable redis.service

    # systemctl start ntopng.service

    # systemctl enable ntopng.service

  6、關閉防火前和Selinux

 

二、訪問
  瀏覽器訪問:Ntop-Ser_IP:3000  賬號:admin  密碼:admin