<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[Nginx和Apache性能的比较]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Fri, 03 Dec 2010 16:38:06 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	我的机子配置 2G内存<br/>1：安装好apache和nginx。它们共用80端口（哈哈，当然修改端口是很简单的），apache安装在 /opt/httpd目录下，nginx安装在/opt/nginx中。<br/>2：安装好webbench(很简单，下载解压后，进入目录，make ，make install即可进行安装），用于压力测试。<br/>3：cd /opt/httpd/bin<br/>./apachectl start<br/>netstat -antl &#124; grep 80 //用以确认该服务是否真正启动！以下是测试部分：<br/>[root@*bin]# webbench -c 5000 -t 60 http://127.0.0.1/apache_pb.png<br/>Webbench - Simple Web Benchmark 1.5<br/>Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.<br/><br/>Benchmarking: GET http://127.0.0.1/apache_pb.png<br/>5000 clients, running 60 sec.<br/><br/>Speed=208453 pages/min, 5741557 bytes/sec.<br/>Requests: 208279 susceed, 174 failed.<br/><br/> <br/>-t 60 表示在60秒的时间内，-c 表示并发数。红色字体部分为性能表示。<br/>很直观的一点就是说有174个响应失败。<br/>4：为了测试的准确性，我<br/><br/>cp /opt/httpd/htdocs/apache_pb.png /opt/nginx/html/&nbsp;&nbsp; //复制文件<br/><br/> <br/>接着关闭apache服务器， 以nginx来测试（我必须将其关闭，因为共用80端口，不关闭， 我启动不了nginx）<br/><br/>[root@qingheliu bin]# pkill httpd //将服务kill掉<br/>[root@qingheliu bin]# netstat -antl &#124; grep 80 //确认apache是否被kill<br/>[root@qingheliu bin]# /opt/nginx/sbin/nginx //启动nginx<br/>[root@qingheliu bin]# netstat -antl &#124; grep 80 //确认是否正常启动<br/>tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN<br/><br/>//压力测试：<br/>[*]# webbench -c 5000 -t 60 http://127.0.0.1/apache_pb.png<br/>Webbench - Simple Web Benchmark 1.5<br/>Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.<br/><br/>Benchmarking: GET http://127.0.0.1/apache_pb.png<br/>5000 clients, running 60 sec.<br/><br/>Speed=325235 pages/min, 8656698 bytes/sec.<br/>Requests: 325235 susceed, 0 failed.<br/>[root@qingheliu bin]#<br/>比较红色字体的部分。事实胜过雄辩，显然nginx服务器功能更好！<br/>转自 http://hi.baidu.com/sheshi37c/blog/item/27417e1ed96942fc1bd57699.html<br/><br/>
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] Nginx和Apache性能的比较]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>