论坛风格切换切换到宽版
  • 846阅读
  • 0回复

[问题求助]FC5下ntop安装说明 [复制链接]

上一主题 下一主题
离线douxp.
 
发帖
2188
C币
-193049
威望
401
贡献值
1
银元
0
铜钱
4922
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
ntop安装说明.b.y maxwell 2006-8-15.
知之甚少,各位对此有好的实际应用请.告诉我 maxwell_81#msn.c.om.
一  介绍
网络流量监控软件,让.网络流量透明化,可以使用.监控交换机流量。.
二  下载
我的系统是FC5,完全安装。下.载ntop           建材
cd /us.r/local/src.
wget ft.p://ftp.freshrpms.n.et/pub/dag/ ... 1.2.fc5.rf.i386.rpm           建材

三  安装
rpm -.ivh nto.p-3.2-1.2.fc5.rf.i386.rpm健康

四  配置
vi /.etc/ntop.conf虚拟主机
参考下面修改
#.##  You should copy this file to it's normal location, /etc/etc/ntop.co.nf           建材
###  and .edit it t.o fit your needs.           鲜花
###
###       ntop is easily launched. with opt.ions by referencing this fi.le from健康
###       .a command li.ne like this:.
###
###       nt.op @/etc./ntop.conf          婚庆
###
###  Remember, options may als.o be listed di.rectly 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 s.et.  There's. no unset option.    外汇
###
###  You can use this t.o your advantage., for example:.
#.##       ntop @/etc/ntop..conf -i none    健康
###  Overri.des the -i. in the file.投资

### Sets the .user that ntop runs as..投资
###  NOTE: This should not be root unless you real..ly understand the security .risks..
--user n.top #用户名

### Sets the directory. that ntop runs fr.om.(        游戏          )
--db-file-path /usr/share/ntop #数.据库存放路.径外贸
--db-file-path /var/nt.op  #.修改成这样学习
### Interfa.ce(s) that ntop will capture on .(default: eth0)域名
--in.terface eth0,eth1,lo #eth0,eth1是我的网卡 lo是回.路(        游戏          )

### Configures ntop not to trust MAC addrs.  .This is us.ed when port mirr.oring or SPAN虚拟主机
#--no-mac

### .L.ogging messages to syslog (instead of the console):.
###  NOTE: To log. to a specific facility, use --use-syslog=.local3.
###  NOTE: The = is REQ.UIR.ED and no spaces are permitted.           鲜花
--use-syslog

### Tells ntop to track only l.ocal hosts as. spe.cified by the --local-subnets option.
#-.-track-local-hosts--- 印刷

### Sets th.e port that the HTTP webserver .listens on(        游戏          )
###  NOTE: -.-ht.tp-server 3000 is the default    外汇
--http-se.rver 3000 #运行端口(广告)

### Sets the port t.hat the optional HTTPS webserver list.ens on             汽车
--https-server 3001..

### Sets t.he networks that ntop should conside.r as local.投资
###  NOTE: .Uses dotted decimal and CIDR notation. Example:. 192.168.0.0/24              乙肝
###        The a.ddresses. 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 dete.rmine this aut.omatically.<性病>
#--domain mydomain..com.

### Sets program to run.. as a daemon--- 印刷
###  NOTE.: For more than. casual use, you probably want this.(        游戏          )
--da.emon #守护进程方式运行.

五  启动
查看启动说明less /usr/share/do.c/nt.op-3.0/1STRUN.txt域名
首次启动(root)
[.root@localhost etc.]#/usr/bin/ntop -P /usr/share/ntop -u ntop -A.
[root@localhost etc]#/usr/bin/ntop.. -P /var/ntop -u ntop -A  #改成这样            杀毒
#-P [directory]指定.db.档存放路径--------------彩票
#-u [user]指定servi.ce启动user    美容
#-A 设定.admin密码,ntop会内建a.dmin管理者帐号于ntop中.
The ou.tput from ntop will look li.ke this:(广告)
Tue Aug 15 16:30:04 2006  NOTE: Interface merge. enabled by .default教育
Tue Aug 15 16:30.:04 2006  Initializing gdbm databas.es.
ntop startup .- waiting for user resp.onse!.
Please e.nter the pas.sword for the admin user:--------------彩票
Pleas.e enter the p.assword again:.
Tue Aug 15 16:30:29 2.006  Admin user password has be.en set(广告)

运行命令
nto.p @/etc/ntop.conf.
/etc/init.d/http.d start             汽车
/etc/ini.t.d/ntop start             汽车

六  浏览
http://localhost:3000/.

七  自动启动
在ntsysv中添加ntop

上面说明.有点小问题,修改如下:             汽车
-db-file-pat.h /usr/share/.ntop #数据库存放路径
-.-db-file-pat.h /var/ntop  #修改成这样<性病>
[root@localhost etc]#/usr/bin/ntop -P /usr/share/nt.op -u nto.p -A外贸
[.root@localhost etc]#/usr/bin/ntop -P /var/nto.p -u ntop -A  #改成这样学习
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个