环境背景:Linux CentOS 6.5
1.++++++++安装底层包+++++++++
2.安装geoip和redis&rrdtools
3.安装ntopng
上述依赖包查找地址,如下:
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配置文件
5.启动服务
1.++++++++安装底层包+++++++++
点击(此处)折叠或打开
-
yum install automake
-
-
yum makecache
-
-
yum install gcc
-
-
yum install gcc-c++ -y
-
-
yum install libpcap (http://tcpdump.org)
-
-
yum install libpcap-devel
-
-
yum install libcurl (http://curl.haxx.se/)
-
-
yum install libcurl-devel
-
-
yum install -y sqlite-devel
-
-
yum install wget
-
-
yum install libxml2-devel(RRD prerequisite)
-
-
yum install glib2-devel(RRD prerequisite)
-
-
yum install numactl
2.安装geoip和redis&rrdtools
点击(此处)折叠或打开
-
--------------------------GeoIP------------------------
-
rpm -ivh GeoIP-1.5.1-5.el6.x86_64.rpm
-
rpm -ivh GeoIP-devel-1.5.1-5.el6.x86_64.rpm
-
-
--------------------------redis------------------------
-
rpm -ivh redis-2.4.10-1.el6.x86_64.rpm
-
-
--------------------------rrdtool----------------------
-
rpm -ivh rrdtool-1.3.8-6.el6.x86_64.rpm
-
-
3.这里会缺少依赖包(安装rrdtool的时候)
-
yum install dejavu-fonts-common
-
yum install dejavu-sans-mono-fonts
-
-
dejavu-lgc-sans-mono-fonts-2.30-2.el6.noarch.rpm
- libzmq3-3.2.2-5.1.x86_64.rpm
3.安装ntopng
点击(此处)折叠或打开
-
--------------------------ntopng-----------------------
-
rpm -ivh ntopng-1.2.2-8710.x86_64.rpm
- 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配置文件
点击(此处)折叠或打开
-
[root@xens3 ~]# cd /etc/ntopng/
-
[root@xens3 ntopng]# ls
-
ntopng.conf.sample ntopng.start
-
-
[root@xens3 ntopng]#vim ntopng.conf.sample
-
-
-G=/var/tmp/ntopng.gid
-
-
--local-networks=10.0.1.0/24,10.0.2.0/24,10.0.3.0/24
-
--interface=eth0
-
--user=nobody
-
--http-port=8888
-
- [root@xens3 ntopng]#mv ntopng.conf.sample ntopng.conf
点击(此处)折叠或打开
-
service redis start
- service ntopng start