安装atop网络流量监控工具
1,安装ntop必备软件,用yum方式直接从网上获取+安装,一步完成。# yum install -y gcc libpcap-devel libpcap libtool automake autoconf gdbm gdbm-devel libevent-devel rrdtool rrdtool-devel zlib zlib-devel
2,安装ntop之前必须要先安装GeoIP,但是这个软件不能像前面一样,用yum从网上获取后直接安装,它需要用wget URL 先从网上下载安装包,解压后自行安装。
#wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
#tar -zxvf GeoIP.tar.gz
#cd GeoIP*
#./configure
#make
#make install
3,下载+编译安装ntop
#wget http://sourceforge.net/projects/ntop/files/ntop/Stable/ntop-5.0.1.tar.gz
#tar -zxvf ntop-5.0.1.tar.gz
#cd ntop*
#./autogen.sh
#make
#makeinstall
4,创建ntop账号
# useradd -M -s /sbin/nologin -r ntop
# chown -R ntop:root /usr/local/var/ntop/
# chown -R ntop:ntop /usr/local/var/ntop/
# ntop -A
(下面是两次输入密码)
5,启动ntop服务,设为开机启动
# vi /etc/rc.local
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
/usr/local/bin/ntop -d -L -u ntop -P /usr/local/var/ntop --ship-version-check
--use-syslog=daemon
6,在远程浏览器中输入http://IP:3000
页:
[1]