5、配置ntopng
1、查看默认配置文件
[root@net1 ~]# cd /etc/ntopng/
[root@net1 ntopng]# ls
ntopng.conf.sample ntopng.start
注,ntopng.conf.sample 文件是配置文件样例,ntopng.start是ntopng启动时需要的配置文件(测试的ntopng版本此文件为空)。
[root@net1 ntopng]# cat ntopng.conf.sample
-G=/var/tmp/ntopng.gid
注,-G指定运行所用进程号文件。
修改后的内容为:
[root@net1 ntopng]# cat ntopng.conf
-G=/var/tmp/ntopng.pid
--local-networks “10.1.1.0/24”
--interface eth1
--user nobody
--http-port 8888
注,--local-network “指定本地子网段”; --interface eth1 指定监听eth1网卡上的流量; --user z指定ntopng运行时使用的账户为nobody; --http-port 指定web服务端口为8888,如果不指定默认为3000。
6、启动ntopng
注,在运行ntopng之前,要确认先启动redis服务,redis为ntopng提供键值存储。我们这边重新启动一下redis服务。
service redis start
service ntopng start
7、测试访问一下
http://IP:8888
默认的用户名和密码是admin。
上面就是CentOS 6.4安装ntopng的介绍了,在安装完ntopng后,记得要测试访问,且在安装前,需要配置yum源并进行相关备份。










