📄 ntop配置.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ntop配置指南</title>
<meta name="keywords" content="ntop配置指南,ntop配置指南">
<meta name="generator" content="CipCMS! 1.0.0 with Templates 1.0.0">
<meta name="Author" content="ntop配置指南,ntop配置指南,My FAQ">
<meta name="description" content="ntop配置指南,ntop配置指南"><link rel="stylesheet" href="/images/style.css">
</head>
<body bgcolor="#F4F4E8" topmargin="5">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="186">My FAQ,最新最全的IT技术FAQ</td>
<td width="574" valign="bottom"><table width="574" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="29"><img src="/images/index/bar_bg_l.gif" width="29" height="24"></td>
<td align="center" background="/images/index/bar_bg.gif">
<a href="/new100.html" class="bar">最新100篇</a>
| <a href="/commend100.html" class="bar">推荐100篇</a>
| <a href="/subject/index.html" class="bar">专题100篇</a>
| <a href="/paihang.html" class="bar">排行榜</a>
| <a href="/Search.html" class="bar"><font color=green><b>搜索</b></font></a>
| <a href="http://online.myfaq.com.cn" class="bar">在线API文档</a>
</td>
<td width="4"><img src="/images/index/bar_bg_r.gif" width="4" height="24"></td>
</tr>
</table></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor=#8B7E66>
<tr>
<td width="4" height="32" align="center"class="white"><img src="/images/bar_l.gif" width="4" height="32"></td>
<td width="756" align="center" class="white"><a href="/" class="white1">首 页</a> | <a href=/Dev/index.html class=white1 >程序开发</a> | <a href=/System/index.html class=white1 >操作系统</a> | <a href=/Soft/index.html class=white1 >软件应用</a> | <a href=/Design/index.html class=white1 >图形图象</a> | <a href=/Net/index.html class=white1 >网络应用</a> | <a href=/Good/index.html class=white1 >精文荟萃</a> | <a href=/RenZ/index.html class=white1 >教育认证</a> | <a href=/Temps/index.html class=white1 >未整理篇</a> | <a href=http://bbs.myfaq.com.cn class=white1 >技术讨论</a>
</td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1" bgcolor=white></td>
</tr>
<tr>
<td height="4" bgcolor=#8B7E66 ></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="border2">
<tr>
<td bgcolor="#F4F4E8"><script language="javascript" src="httP://www.myfaq.com.cn/images/top760.js" ></script></td>
</tr>
<tr>
<td height="4" bgcolor=#8B7E66 ></td>
</tr>
</table>
<TABLE width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="border2">
<tr><td bgcolor="#FFFFFF" height=25> 当前位置: > <a class="nowplace" href="/Net/index.html">网络应用</a> > <a class="nowplace" href="/Net/Safe/index.html">网络安全</a> > <a class="nowplace" href="/Net/Safe/Safe/index.html">网络安全</a></td></tr>
<tr><td height=10></td></tr><TR>
<TD align=center><b>ntop配置指南</b>
</TD>
</TR>
<tr><td height=1 bgcolor=#D6D6D6></td></tr>
<tr ><td height=25 bgcolor=#F1F1F1 align=center>
作者:<font color="0E3E92">未知</font>
时间:<font color="0E3E92">2005-09-13 23:48</font>
出处:<font color="0E3E92">Blog.ChinaUnix.net</font>
责编:<font color="0E3E92">My FAQ</font>
</td></tr><tr><td height=1 bgcolor=#D6D6D6></td></tr>
<tr><td bgcolor="#FFFFFF" height=25> 摘要:ntop配置指南</td></tr>
<tr><td height=1 bgcolor=#D6D6D6></td></tr>
</TABLE>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="border2" bgcolor="#FFFFFF">
<tr><td height=25 align=center>
<TABLE width=95% >
<TR>
<TD><table border="0" align="left">
<tr>
<td><script language="javascript" src="httP://www.myfaq.com.cn/images/ad.js" charset="utf-8"></script></td>
</tr>
</table>很简单,关键是在/etc/ntop.conf 加入<br />
--http-server 3000<br />
--domain hk.newsky.cn<br />即可<br /><p>1.下载<br />ftp://ftp.freshrpms.net/pub/dag/packages/ntop/ntop-3.1-1.1.el3.rf.i386.rpm<br /><br />2.安装<br />rpm -ivh ntop-3.1-1.1.el3.rf.i386.rpm <br /><br />3.配置<br />#vi /etc/ntop.conf <br />加入<br />--http-server 3000<br />--domain hk.newsky.cn<br /><br />4.设定admin密码<br />[root@hkweb root]# ntop -A<br />Tue Jul 26 15:06:54 2005  Initializing gdbm databases<br /> <br />Please enter the password for the admin user: <br />Please enter the password again: <br />Tue Jul 26 15:07:06 2005  Admin user password has been set<br /><br />5.启动<br />[root@hkweb root]# /etc/init.d/ntop start<br />Starting ntop:                                             [  OK  ]<br />注:如果/etc/init.d/ntop start无法启动,则可以用ntop -d命令启动<br /><br />6.访问<br />http://202.96.155.37:3000/<br /><br />参考:http://www.linuxaid.com.cn/articles/7/1/712517868.shtml<br />     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<br /><br />附:我的/etc/ntop.conf文件<br />[root@hkweb root]# cat /etc/ntop.conf <br />###  You should copy this file to it's normal location, /etc/etc/ntop.conf<br />###  and edit it to fit your needs.<br />###<br />###       ntop is easily launched with options by referencing this file from<br />###       a command line like this:<br />###<br />###       ntop @/etc/ntop.conf<br />###<br />###  Remember, options may also be listed directly on the command line, both<br />###  before and  after the @/etc/ntop.conf.<br />###<br />###  For switches that provide values, e.g. -i, the last one matters.<br />###  For switches just say 'do things', e..g -M, if it's ANYWHERE in the<br />###  commands, it will be set.  There's no unset option.<br />###<br />###  You can use this to your advantage, for example:<br />###       ntop @/etc/ntop.conf -i none<br />###  Overrides the -i in the file.<br /> <br />### Sets the user that ntop runs as.  <br />###  NOTE: This should not be root unless you really understand the security risks.<br />--user ntop<br /> <br />### Sets the directory that ntop runs from.<br />--db-file-path /var/ntop<br /> <br />### Interface(s) that ntop will capture on (default: eth0)<br />#--interface eth0<br /> <br />### Configures ntop not to trust MAC addrs.  This is used when port mirroring or SPAN<br />#--no-mac<br /> <br />### Logging messages to syslog (instead of the console):<br />###  NOTE: To log to a specific facility, use --use-syslog=local3<br />###  NOTE: The = is REQUIRED and no spaces are permitted.<br />--use-syslog<br /> <br />### Tells ntop to track only local hosts as specified by the --local-subnets option<br />#--track-local-hosts<br /> <br />### Sets the port that the HTTP webserver listens on<br />###  NOTE: --http-server 3000 is the default<br />--http-server 3000<br /> <br />### Sets the port that the optional HTTPS webserver listens on<br />#--https-server 3001<br /> <br />### Sets the networks that ntop should consider as local.  <br />###  NOTE: Uses dotted decimal and CIDR notation. Example: 192.168.0.0/24<br />###        The addresses of the interfaces are always local and don't need to be specified.<br />#--local-subnets xx.xx.xx.xx/yy<br /> <br />### Sets the domain.  ntop should be able to determine this automatically.<br />--domain hk.newsky.cn<br /> <br />### Sets program to run as a daemon<br />###  NOTE: For more than casual use, you probably want this.<br />#--daemon<br /><br /> </TD>
</TR>
</TABLE>
</td></tr><tr><td height=1 bgcolor=#D6D6D6></td></tr>
<tr><td bgcolor="#FFFFFF" height=25 align=center><script language="JavaScript" src="/images/fav.js"></script></td></tr>
<tr><td height=1 bgcolor=#D6D6D6></td></tr>
<tr>
<Td colspan="9" class="ButtonList" height="22" > </font>
</td>
</tr>
<tr>
<Td colspan="9" align=center ><iframe id="baiduframe" border="0" vspace="0" hspace="0" marginwidth="0" marginheight="0"
framespacing="0" frameborder="0" scrolling="no" width="670" height="40"
src="http://unstat.baidu.com/bdun.bsc?tn=czken&csid=103&rkcs=0&bgcr=FFFFFF&ftcr=000000&rk=1&bd=0&bdas=0">
</iframe>
</td>
</tr>
</table>
<table width=760 border=0 class="border3" cellpadding=0 bgcolor=#ffffff align=center cellspacing=0 >
<tr><td colspan=3 height=2></td></tr>
</table>
<table width=760 border=0 cellpadding=0 cellspacing=0 align=center>
<tr height=10><td></td></tr>
<tr height=20>
<td align=center><a href=/index.html class=gray2>首页</a> | <a href=/hezuo.html class=gray2>投资与合作</a> | <a href="/fuwu.html" class=gray2>服务条款</a> | <a target=_blank href="/yinsi.html" class=gray2>隐私政策</a> |
<A href="javascript:window.external.AddFavorite('http://www.myfaq.com.cn/',%20'“My FAQ,提供最新最全的电脑技术教程”"/www.myfaq.com.cn')" target=_self class=gray2>收藏本站</A> |
<A style="BEHAVIOR: url(#default#homepage)"
onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.myfaq.com.cn/');return(false);"
href="http://www.myfaq.com.cn/#" class=gray2>设为首页</A> |
<a href="Http://bbs.myfaq.com.cn/" class=gray2>新用户注册</a> |
<a href="/shengming.html" class=gray2>免责声明</a> |
<a href="/help.html" class=gray2 target=_blank>使用帮助</a></td></tr>
<tr><td height=1 bgcolor=#666666></td></tr>
<tr height=20><td align=center>Copyright ©2005-2008 myfaq.com.cn All rights reserved. www.myfaq.com.cn 版权所有</td></tr>
</table>
<SCRIPT language="javascript" src="/images/footer.js"></SCRIPT>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -