<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>臭皮匠 &#187; apache</title>
	<atom:link href="http://guogoul.com/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://guogoul.com</link>
	<description></description>
	<lastBuildDate>Fri, 29 Oct 2010 00:24:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>nginx系列(2):apache与nginx+php cgi性能比较</title>
		<link>http://guogoul.com/2008/07/08/nginx_2/</link>
		<comments>http://guogoul.com/2008/07/08/nginx_2/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 16:09:48 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[技巧]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/07/08/nginx_2/</guid>
		<description><![CDATA[听说nginx性能是apache的10倍，可同时处理并发3W请求。只是听说而已自己没有证明过，今天 没事就用webbench测试一下看看到底有多大差距呢！
由于没有专业的环境，只能用我这个快要淘汰的本本上试一试了。nginx的性能如果可以并发3w不挂的话，我的机器早就升天了。我想先测试并发2000看看效果。
1.先拿apache开刀:
  用apache的默认配置没有进行修改.真是受不了，我的pc基本上处于假死状态,可能已死呵呵。不过我还坚持实验了两组:
第一组:
$ webbench -t 20 -c 2000 http://home.ucenter:8080/test.php
Webbench &#8211; Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://home.ucenter:8080/test.php
2000 clients, running 20 sec.
Speed=62814 pages/min, 294224 bytes/sec.
Requests: 20938 susceed, 0 failed.
难怪假死我的是p4 1.8的cpu，load 都到了12了，真是难为我的机器了

第二组:
$ webbench -t 20 -c 2000 http://home.ucenter:8080/test.php
Webbench &#8211; Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/07/08/nginx_2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>压力测试工具:ab,webbench</title>
		<link>http://guogoul.com/2008/07/06/ab_webbench/</link>
		<comments>http://guogoul.com/2008/07/06/ab_webbench/#comments</comments>
		<pubDate>Sun, 06 Jul 2008 12:00:16 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[技巧]]></category>
		<category><![CDATA[ab]]></category>
		<category><![CDATA[webbench]]></category>
		<category><![CDATA[压力测试]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/07/06/%e5%8e%8b%e5%8a%9b%e6%b5%8b%e8%af%95%e5%b7%a5%e5%85%b7abwebbench/</guid>
		<description><![CDATA[为了比较网站或者服务器的性能少不了压力测试工具。最受欢迎的是ab测试工具。ab测试工具随apache打包发布，所有应用起来十分方便。而webbench用起来更加的简单，参数很少简单易懂.
1. ab
   根目录： 在apache的根目录下面。
   测试例子： ab -n 10000 -c 100 -t  10 http://www.test.com/
   参数: -n 表示请求总数， -c 表示并发数. -t 表示请求时间限制
  Usage: ab [options] [http[s]://]hostname[:port]/path
Options are:
    -n requests     Number of requests to perform
    -c concurrency  Number of [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/07/06/ab_webbench/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx系列(1)：快速搭建nginx + php fastcgi系统</title>
		<link>http://guogoul.com/2008/07/05/nginx_1/</link>
		<comments>http://guogoul.com/2008/07/05/nginx_1/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 15:24:05 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[lighttpd]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/07/05/nginx_1/</guid>
		<description><![CDATA[nginx历吏比较短，由俄罗斯人编写，以性能卓越闻名。国内用nginx做server的公司还不多，相关的学习文档还不是很完全。边学边记，共同学习。
首先分享一下搭建nginx心得.其实在ubuntu下面建立nginx平台还是十分的简单，只不过本人用linux系统的不长以及nginx的相关文档比较少，以至在前期走了不少的弯路.
1. 测试平台: ubuntu8.04
2.安装nginx  1)sudo apt-get install nginx   2)相关路径：      conf:  /etc/nginx/nginx.conf      bin:    /usr/sbin/nginx      vhost: /etc/nginx/sites-enable/default      cgi-params: /etc/nginx/fastcgi-params  3)例子:建一个虚拟server       在/etc/nginx/sites-enable/default中添加以下代码    [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/07/05/nginx_1/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>用mod_proxy实现反向代理</title>
		<link>http://guogoul.com/2008/07/01/proxypass/</link>
		<comments>http://guogoul.com/2008/07/01/proxypass/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 15:21:14 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[HTTP_X_FORWARDED_FOR]]></category>
		<category><![CDATA[mod_proxy]]></category>
		<category><![CDATA[ProxyPass]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/07/01/proxypass/</guid>
		<description><![CDATA[由于项目需要实现一个域名代理的功能比如:     a.com/a.html=&#62;b.com/b.html也就是用a.com代理了所用b.com网站的请求,经过朋友介绍用apache的反向代理可以实现其目的,哥们试了一下,果然很爽.配置起来也超级的方便.
(注意下面只介绍反向代理,正向代理等我用到了再介绍嘿嘿)
1.启动apache的mod_proxy模块.
LoadModule proxy_module modules/mod_proxy.soLoadModule proxy_http_module modules/mod_proxy_http.so
注意mod_proxy_http.so.我测试的时候没有添加这个模块怎么测试都会代理失败,后来添加了这个模块后问题消失
2.实现代理语句
      ProxyPass /mirror/foo/ http://backend.example.com/
实现把当前host /mirror/foo/目录下面的请求全都分发到backend.example.com上面去.根据我的要求:在a.com的文件夹目录里面加上一条 ProxyPass / http://b.com/一切ok
3.进行域名代理后要注意: 3.1:网站中的url最好都用相对路径.如果用绝对路径的话容易绕过代理,这后代理服务器后面的主机就容易暴露. 3.2:注意在引用$__Server['server_name']全局变量的时候取到的是当前server_name的域名.如果想取到代理的域名则要通过$__Server['HTTP_X_FORWARDED_FOR']取得代理域名.注:一般用于写cookie之类的操作.  不知道朋友还有没有更好的解决方案,欢迎留言
mod_proxy官方文档
]]></description>
		<wfw:commentRss>http://guogoul.com/2008/07/01/proxypass/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

