Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1951806
  • 博文数量: 176
  • 博客积分: 1857
  • 博客等级: 上尉
  • 技术积分: 2729
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-14 22:55
个人简介

吾生有涯,而知无涯,适当止学.循序渐进,步步提升 Talk is cheap, show me the code.

文章分类

全部博文(176)

文章存档

2019年(1)

2018年(14)

2017年(20)

2016年(31)

2015年(15)

2014年(5)

2013年(10)

2012年(80)

分类: 系统运维

2015-01-30 10:48:35

环境背景: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
上述依赖包查找地址,如下:

epel库地址
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







阅读(6415) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~