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 然后再接着安装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 |
|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )
GMT+8, 2024-9-30 03:21 , Processed in 0.129488 second(s), 12 queries , Gzip On, MemCache On.
Powered by Discuz! X3.5
© 2001-2023 Discuz! Team.