歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> Centos 6.3下ntop配置筆記

Centos 6.3下ntop配置筆記

日期:2017/3/3 16:16:25   编辑:關於Linux

系統環境:Centos6.3 x64

NTOP: ntop-5.0.1

rrdtool: rpmforge源

libpcap: rpmforge源

NTOP是一個自帶web管理界面的網絡流量監控工具,用來監控LINUX站內內網流量。它可以安裝在網關上,也可以橋接在網關與接入層交換機間作為一個嗅探器,可以理解為一個加強版sniffer。

1.安裝第三方YUM源

# http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

# rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

2.安裝依賴包

# yum install libtool automake autoconf m4 make gcc gcc-c++ gdbm gdbm-devel zlib zlib-devel openssl openssl-devel python-devel GeoIP GeoIP-devel -y

3.安裝libpcap

# yum install libpcap libpcap-devel -y

4.安裝rrdtool

# yum install rrdtool rrdtool-devel -y

4.安裝ntop

# wget http://sourceforge.net/projects/ntop/files/ntop/Stable/ntop-5.0.1.tar.gz/download

# tar -zxvf ntop-5.0.1.tar.gz

# cd ntop-5.0.1

# ./autogen.sh

# make && make install

5.建立ntop用戶和組

# groupadd ntop

# useradd ntop -g ntop

6.配置ntop用戶權限

ntop的主目錄默認在/usr/local/share/ntop

# chown -R ntop:ntop /usr/local/share/ntop

7.創建ntop使用的rrd目錄

# mkdir /usr/local/var/ntop/rrd

# chown -R ntop:ntop /usr/local/var/ntop/rrd

8.啟動ntop

# ntop -u ntop -d

9.在浏覽器上登陸ntop(用戶名/密碼:admin/admin)

http://192.168.7.73:3000

 

修改密碼:

Admin - Configure - Web Users-修改admin用戶密碼

10.設置開機自啟動

# vi /etc/rc.local

末行添加:

------------------

/usr/local/bin/ntop -u ntop -d

------------------

11.查看日志:

# tail -f /var/log/messages

本文出自 “一路向北” 博客,請務必保留此出處http://showerlee.blog.51cto.com/2047005/1215659

Copyright © Linux教程網 All Rights Reserved