• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

ntop配置指南

发布: 2007-5-25 12:08 | 作者: 未知 | 来源: Blog.ChinaUnix.net | 查看: 273次 | 进入软件测试论坛讨论

领测软件测试网 很简单,关键是在/etc/ntop.conf 加入
--http-server 3000
--domain hk.newsky.cn
即可

1.下载
ftp://ftp.freshrpms.net/pub/dag/packages/ntop/ntop-3.1-1.1.el3.rf.i386.rpm

2.安装
rpm -ivh ntop-3.1-1.1.el3.rf.i386.rpm

3.配置
#vi /etc/ntop.conf
加入
--http-server 3000
--domain hk.newsky.cn

4.设定admin密码
[root@hkweb root]# ntop -A
Tue Jul 26 15:06:54 2005  Initializing gdbm databases
 
Please enter the password for the admin user:
Please enter the password again:
Tue Jul 26 15:07:06 2005  Admin user password has been set

5.启动
[root@hkweb root]# /etc/init.d/ntop start
Starting ntop:                                             [  OK  ]
注:如果/etc/init.d/ntop start无法启动,则可以用ntop -d命令启动

6.访问
http://202.96.155.37:3000/

参考:http://www.linuxaid.com.cn/articles/7/1/712517868.shtml
     http://www.weithenn.idv.tw/cgi-bin/wiki.pl/Ntop-%e6%b5%81%e9%87%8f%e6%aa%a2%e6%b8%ac%e5%8f%8a%e5%b0%81%e5%8c%85%e8%be%a8%e8%ad%98%e7%9a%84%e7%b6%b2%e7%ae%a1%e8%bb%9f%e9%ab%94

附:我的/etc/ntop.conf文件
[root@hkweb root]# cat /etc/ntop.conf
###  You should copy this file to it's normal location, /etc/etc/ntop.conf
###  and edit it to fit your needs.
###
###       ntop is easily launched with options by referencing this file from
###       a command line like this:
###
###       ntop @/etc/ntop.conf
###
###  Remember, options may also be listed directly on the command line, both
###  before and  after the @/etc/ntop.conf.
###
###  For switches that provide values, e.g. -i, the last one matters.
###  For switches just say 'do things', e..g -M, if it's ANYWHERE in the
###  commands, it will be set.  There's no unset option.
###
###  You can use this to your advantage, for example:
###       ntop @/etc/ntop.conf -i none
###  Overrides the -i in the file.
 
### Sets the user that ntop runs as. 
###  NOTE: This should not be root unless you really understand the security risks.
--user ntop
 
### Sets the directory that ntop runs from.
--db-file-path /var/ntop
 
### Interface(s) that ntop will capture on (default: eth0)
#--interface eth0
 
### Configures ntop not to trust MAC addrs.  This is used when port mirroring or SPAN
#--no-mac
 
### Logging messages to syslog (instead of the console):
###  NOTE: To log to a specific facility, use --use-syslog=local3
###  NOTE: The = is REQUIRED and no spaces are permitted.
--use-syslog
 
### Tells ntop to track only local hosts as specified by the --local-subnets option
#--track-local-hosts
 
### Sets the port that the HTTP webserver listens on
###  NOTE: --http-server 3000 is the default
--http-server 3000
 
### Sets the port that the optional HTTPS webserver listens on
#--https-server 3001
 
### Sets the networks that ntop should consider as local. 
###  NOTE: Uses dotted decimal and CIDR notation. Example: 192.168.0.0/24
###        The addresses of the interfaces are always local and don't need to be specified.
#--local-subnets xx.xx.xx.xx/yy
 
### Sets the domain.  ntop should be able to determine this automatically.
--domain hk.newsky.cn
 
### Sets program to run as a daemon
###  NOTE: For more than casual use, you probably want this.
#--daemon

 

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网