CentOS6.5安装NTOPNG流量监控工具

  1. 云栖社区>
  2. 博客>
  3. 正文

CentOS6.5安装NTOPNG流量监控工具

zhangshengdong 2015-01-30 10:48:35 浏览500
展开阅读全文
环境背景:Linux CentOS 6.5

1.++++++++安装底层包+++++++++

点击(此处)折叠或打开

  1. yum install automake

  2. yum makecache

  3. yum install gcc

  4. yum install gcc-c++ -y

  5. yum install libpcap (http://tcpdump.org)

  6. yum install libpcap-devel

  7. yum install libcurl (http://curl.haxx.se/)

  8. yum install libcurl-devel

  9. yum install -y sqlite-devel

  10. yum install wget

  11. yum install libxml2-devel(RRD prerequisite)

  12. yum install glib2-devel(RRD prerequisite)

  13. yum install numactl

2.安装geoip和redis&rrdtools

点击(此处)折叠或打开

  1. --------------------------GeoIP------------------------
  2. rpm -ivh GeoIP-1.5.1-5.el6.x86_64.rpm
  3. rpm -ivh GeoIP-devel-1.5.1-5.el6.x86_64.rpm

  4. --------------------------redis------------------------
  5. rpm -ivh redis-2.4.10-1.el6.x86_64.rpm

  6. --------------------------rrdtool----------------------
  7. rpm -ivh rrdtool-1.3.8-6.el6.x86_64.rpm

  8. 3.这里会缺少依赖包(安装rrdtool的时候)
  9. yum install dejavu-fonts-common
  10. yum install dejavu-sans-mono-fonts

  11. dejavu-lgc-sans-mono-fonts-2.30-2.el6.noarch.rpm
  12. libzmq3-3.2.2-5.1.x86_64.rpm

3.安装ntopng

点击(此处)折叠或打开

  1. --------------------------ntopng-----------------------
  2. rpm -ivh ntopng-1.2.2-8710.x86_64.rpm
  3. rpm -ivh ntopng-data-1.2.2-8710.noarch.rpm
上述依赖包查找地址,如下:

http://dl.fedoraproject.org/pub/epel/6/   epel库地址
http://rpm.pbone.net/index.php3/stat/4/idpl/23532429/dir/centos_6/com/libzmq3-3.2.2-5.1.x86_64.rpm.html   linux rpm search 库

4.查看ntopng配置文件

点击(此处)折叠或打开

  1. [root@xens3 ~]# cd /etc/ntopng/
  2. [root@xens3 ntopng]# ls
  3. ntopng.conf.sample ntopng.start

  4. [root@xens3 ntopng]#vim ntopng.conf.sample

  5. -G=/var/tmp/ntopng.gid

  6. --local-networks=10.0.1.0/24,10.0.2.0/24,10.0.3.0/24
  7. --interface=eth0
  8. --user=nobody
  9. --http-port=8888

  10. [root@xens3 ntopng]#mv ntopng.conf.sample ntopng.conf
5.启动服务

点击(此处)折叠或打开

  1. service redis start
  2. service ntopng start







网友评论

登录后评论
0/500
评论
zhangshengdong
+ 关注