<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></title> 
<link>http://www.bizeway.net/index.php</link> 
<description><![CDATA[网务通 - 网务公司发展之路]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></copyright>
<item>
<link>http://www.bizeway.net/read.php?</link>
<title><![CDATA[跟着ArthurXF学FreeBSD31——实时跟踪log变化的工具Apachetop]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[FreeBSD]]></category>
<pubDate>Sun, 05 Aug 2007 03:33:09 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?</guid> 
<description>
<![CDATA[ 
	　　作为一个网站管理员，我们经常会有需要知道当前什么人正在访问我们的网站，谁正在频繁的抓取我们网站的内容，什么搜索引擎正在抓取我们网站？面对这些问题，我们虽然可以去查看log日志文件，但是却不能让我们实时统计，不能给我们直观的统计数据。现在好了，有了apachetop这个工具就可以实时的跟踪log的变化，对网站管理帮助很大。Apachetop是一个apache的log实时监测程序，能查看访问者正在查看哪些文件，和访问者IP等信息。<br/><br/>　　首先，看看怎么安装：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">cd /usr/ports/sysutils/apachetop <br/>#如果你需要增加正则表达式等功能，则先执行配置命令，不需要则跳过<br/>make config<br/>make<br/>make install</div></div><br/>安装成功之后，将在/usr/local/bin，加入apachetop命名文件，如果不能直接执行，请到这里来找。<br/><br/>　　一般使用方法：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"># apachetop -f /var/log/httpd.access</div></div><br/><br/>下面是用法说明：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">ApacheTop v0.12.6 - Usage:<br/>File options:<br/> &nbsp;-f logfile &nbsp;open logfile (assumed common/combined) [/var/log/httpd-access.log]<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(repeat option for more than one source)<br/><br/>URL/host/referrer munging options:<br/> &nbsp;-q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;保持请求字符串[no]<br/> &nbsp;-l &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 所有的url小写[no]<br/> &nbsp;-s num &nbsp;保持url路径段数量 [all]<br/> &nbsp;-p &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;在referrer前面保留协议 [no]<br/> &nbsp;-r &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;保留每一个的主机/ip [no]<br/><br/>Stats options:<br/> &nbsp;必须提供两个参数 default: [-T 30]<br/>缺省设置为保持记录状态30秒，30秒后数据刷新了。为了提供更多的信息给我们分析，我们可以调节下面的参数。<br/> &nbsp;-H hits &nbsp; &nbsp; 保持状态只到多少点击数<br/> &nbsp;-T secs &nbsp; &nbsp; 保持状态只到多少秒<br/><br/> &nbsp;-d secs &nbsp; &nbsp; 刷新延迟时间[5]<br/><br/> &nbsp;-h &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;这个帮助。</div></div><br/><br/>当执行之后，还有命令可以切换显示状态：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">ApacheTop version 0.12.6, Copyright (c) 2003-2004, Chris Elsworth<br/><br/>ONE-TOUCH COMMANDS<br/>d &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 切换urls/referrers/hosts显示模式开关 <br/>n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 切换hits & bytes或返回代码开关<br/>h or ? &nbsp; &nbsp; : 帮助信息<br/>p &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: (un)暂停显示 (冻结更新)<br/>q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: 退出 ApacheTop<br/>up/down &nbsp; &nbsp;: 移动星标 up/down<br/>right/left : 进入/退出逐条显示模式<br/>子菜单:<br/>s: &nbsp;排序: [the appropriate menu will appear for your display]<br/> &nbsp; &nbsp; &nbsp; &nbsp;r) requests &nbsp;R) reqs/sec &nbsp;b) bytes &nbsp;B) bytes/sec<br/> &nbsp; &nbsp; &nbsp; &nbsp;2) 2xx &nbsp; 3) 3xx &nbsp; 4) 4xx &nbsp; 5) 5xx<br/><br/>t: &nbsp;固定显示 ON/OFF:<br/> &nbsp; &nbsp; &nbsp; &nbsp;u) urls &nbsp;r) referrers &nbsp;h) hosts<br/><br/>f: &nbsp;使用过滤器:<br/> &nbsp; &nbsp; &nbsp; &nbsp;a) add/edit menu c) clear all &nbsp;s) show active (not done yet)<br/> &nbsp; &nbsp; &nbsp; &nbsp;a: &nbsp;ADD FILTER SUBMENU<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;u) to urls &nbsp;r) to referrers &nbsp;h) to hosts</div></div><br/><br/><br/><br/>现在ArthurXF本人正在搞PHP等技术培训，如果想学习的人可以跟我联系。另外培训的招生简章在这个网址，想了解的可以去看看。加我QQ：29011218交流也可。<br/><a href="http://www.bizeway.net/read.php/285.htm" target="_blank">PHP培训招生简章</a><br/>Tags - <a href="tag.php?tag=apachetop" rel="tag">apachetop</a> , <a href="tag.php?tag=freebsd" rel="tag">freebsd</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?&amp;guid=0#topreply</link>
<title><![CDATA[[评论] 跟着ArthurXF学FreeBSD31——实时跟踪log变化的工具Apachetop]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?&amp;guid=0#topreply</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>