安装ntop3.3遇到的问题及解决方法

简介:
安装ntop3.3遇到的问题及解决方法

1、从网上下载了NTOP3.3,解压缩直接安装 (./autogen.sh --prefix=/usr/local/ntop3 --disable-ipv6)会报如下错误:
Test the compiler and setup CFLAGS...
checking if compiler accepts -W (warning flags)... yes
Critical library/include tests...
checking for pcap_lookupdev in -lpcap... no
             *** FATAL ERROR ***
It looks that you don't have the libpcap distribution installed.
Download, compile and, optionally, install it.
When finished please re-run this program.
You can download the latest source tarball at  http://www.tcpdump.org/
configure: error: The LBL Packet Capture Library, libpcap, was not found!
[root@testggv ntop-3.3]#
 
安装LIBpcp 时遇到的问题:
checking if sockaddr_storage struct exists... yes
checking if dl_hp_ppa_info_t struct has dl_module_id_1 member... no
checking if unaligned accesses fail... no
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: Makefile.in seems to ignore the --datarootdir setting
config.status: creating config.h
[root@testggv libpcap-0.9.8]# make
gcc -O2 -fPIC -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./pcap-li
nux.c
gcc -O2 -fPIC -I. -DHAVE_CONFIG_H -D_U_="__attribute__((unused))" -c ./fad-get
ad.c
In file included from ./fad-getad.c:67:
/usr/include/linux/if_packet.h:52: error: expected specifier-qualifier-list befo
re 鈥榑_u32鈥
檓ake: *** [fad-getad.o] Error 1
解决:在/usr/include/linux/if_packet.h加入 #include <linux/types.h>
 
然后再接着安装ntop,安装好NTOP后,做如下的设置:
 
1、chown -R nobody.nobody /usr/local/nto/share/ntop
2、/usr/local/ntop/bin/ntop -P /usr/local/ntop/share/ntop -u nobody -A
(说明:-P:指定.db档存放路径 -u:指定service 启动user A 设定管理员与密码,默认都是:admin,第一次启动的时候需要输入,往后启动不需要要输入,默认端口是3000 或/usr/local/ntop/bin/ntop -P /usr/local/ntop/share/ntop -u nobody -m 192.168.92.0/24 只监控192.168.92.0这个网段)
 
3、拷贝配置文件模板
   cp /usr/local/src/ntop-3.3/packages/RedHat/ntop.conf.sample /etc/ntop.conf
注意几个选项:--user nobody
            --daemon
            --db-file-path /usr/local/ntop/share/ntop
            --interface eth0
            --no-mac
            --m 123.127.71.128
            --trace-level 3
            --http-server 3000
             --disable-schedyield
最后启动的时候,可以这样/usr/local/ntop/bin/ntop @/etc/ntop.conf 呵)
 
(安装中可能遇到的问题:
1、NTop can't find libntoprepot-3.2.so 解决办法/sbin/ldconfig /usr/local/bin/ntop

本文转自holy2009 51CTO博客,原文链接:http://blog.51cto.com/holy2010/405818

相关文章
|
4月前
|
网络协议
“wget: 无法解析主机地址”的解决方法
“wget: 无法解析主机地址”的解决方法
497 1
|
数据库
排错集01——使用yum命令提示“错误:无法从 /var/lib/rpm 打开软件包数据库”
一、问题/现象: 使用yum命令安装软件包时,报错“无法从 /var/lib/rpm 打开软件包数据库”:
1457 0
|
Ubuntu Linux iOS开发
Calibre的Linux安装error:libxcb-xinerama0及解决方法
Calibre的Linux安装error:libxcb-xinerama0及解决方法
910 0
Calibre的Linux安装error:libxcb-xinerama0及解决方法
|
监控 Linux 数据安全/隐私保护
|
Apache 数据安全/隐私保护

热门文章

最新文章