<?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; 瞎折腾</title>
	<atom:link href="http://www.raptium.net/category/messed-up/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raptium.net</link>
	<description>raptium's another weblog</description>
	<lastBuildDate>Thu, 29 Apr 2010 22:17:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<atom:link rel='hub' href='http://www.raptium.net/?pushpress=hub'/>
		<item>
		<title>人人克隆关系网？</title>
		<link>http://www.raptium.net/2010/04/29/relationship-clone-in-sns/</link>
		<comments>http://www.raptium.net/2010/04/29/relationship-clone-in-sns/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 22:17:08 +0000</pubDate>
		<dc:creator>raptium</dc:creator>
				<category><![CDATA[唠唠叨叨]]></category>
		<category><![CDATA[瞎折腾]]></category>
		<guid isPermaLink="false">http://www.raptium.net/?p=462</guid>
		<description><![CDATA[今天 Ice 在人人网偶然发现了一个夏润喆的小号，此号有不少好友，都是小号。这些小号又有不少其他好友，也大都是小号。这些号的共同点为：真名，真头像（如果有的话），互相加了好友，... ]]></description>
			<content:encoded><![CDATA[<p>今天 Ice 在<a href="http://www.renren.com">人人网</a>偶然发现了一个夏润喆的小号，此号有不少好友，都是小号。这些小号又有不少其他好友，也大都是小号。这些号的共同点为：真名，真头像（如果有的话），互相加了好友，不活跃，无日志，少状态。注册日期无法判定，但是 ID 都是7字开头，应该在最近一年内注册。于是我们觉得这可能是一个阴谋，有人在暗地里经营着一张克隆关系网……</p>
<p>我们无从得知克隆关系网的目的，然而其带来的安全隐患是巨大的，倘若此关系网规模再增大，每个人的信息再补充完整一些，就能达到以假乱真的效果，从而引发人人网信任危机，甚至其他更严重的问题。</p>
<p>在<a href="http://spreadsheets.google.com/pub?key=0AhInt93ERSDMdDVMajBkWWI5NG5pZG1PYzNWSk5WSFE&#038;hl=en&#038;single=true&#038;gid=0&#038;output=html">这里</a>整理了少量克隆帐号，欢迎补充，如果有加错的也请提醒修正。</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.raptium.net/2010/04/29/relationship-clone-in-sns/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>雅加達歷險記 &#8211; 上篇</title>
		<link>http://www.raptium.net/2010/04/06/i-am-going-to-jakart/</link>
		<comments>http://www.raptium.net/2010/04/06/i-am-going-to-jakart/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 06:11:53 +0000</pubDate>
		<dc:creator>raptium</dc:creator>
				<category><![CDATA[Life is Short]]></category>
		<category><![CDATA[瞎折腾]]></category>
		<category><![CDATA[香港]]></category>
		<guid isPermaLink="false">http://www.raptium.net/?p=457</guid>
		<description><![CDATA[今日抵港入關語錄 ──你是去美國嗎？ ──不是，我去印尼。 ──印尼哪裡？ ──雅加達。 ──簽證呢？ ──來不及辦了，落地簽吧。 ──什麼時候的飛機？ ──明天下午3點50。 …… 五... ]]></description>
			<content:encoded><![CDATA[<p><em>今日抵港入關語錄</em></p>
<p>──你是去美國嗎？<br />
──不是，我去印尼。<br />
──印尼哪裡？<br />
──雅加達。<br />
──簽證呢？<br />
──來不及辦了，落地簽吧。<br />
──什麼時候的飛機？<br />
──明天下午3點50。<br />
……</p>
<p>五日後應當還有下篇，敬請期待。</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.raptium.net/2010/04/06/i-am-going-to-jakart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>好久沒看到這麼有趣的東西了</title>
		<link>http://www.raptium.net/2010/03/15/long-time-no-see-scholar-zhang/</link>
		<comments>http://www.raptium.net/2010/03/15/long-time-no-see-scholar-zhang/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 15:08:04 +0000</pubDate>
		<dc:creator>raptium</dc:creator>
				<category><![CDATA[唠唠叨叨]]></category>
		<category><![CDATA[瞎折腾]]></category>
		<category><![CDATA[gfw]]></category>
		<guid isPermaLink="false">http://www.raptium.net/?p=453</guid>
		<description><![CDATA[很久沒有更新 Blog 的原因之一是，一直都覺得挺無聊的（當然主要原因還是我懶）。 今日在 Google Reader 上見到 Jackie Chen 同學分享的“西廂計劃”原理小解一文， 客戶端張生和服務器端崔鶯鶯... ]]></description>
			<content:encoded><![CDATA[<p>很久沒有更新 Blog 的原因之一是，一直都覺得挺無聊的（當然主要原因還是我懶）。</p>
<p>今日在 Google Reader 上見到 Jackie Chen 同學分享的<a href="http://blog.youxu.info/2010/03/14/west-chamber/">“西廂計劃”原理小解</a>一文， 客戶端張生和服務器端崔鶯鶯的故事本就非常有趣，可是接著讀下去看到西廂計劃的實際內容時，我才真的意識到：好久沒看到這麼有趣的東西了啊～</p>
<p><a href="http://code.google.com/p/scholarzhang/">西廂計劃</a>和常見的穿牆方式不同，既不走彎路、遠路，也不須加密數據，而是利用 GFW 自身缺陷和 TCP/IP 協議的某些特性來實現了直連免過濾。西廂計劃告訴我們，學好 IEG3310 是一件很有意義的事情，看似無聊的三次握手也可能握得很精彩。</p>
<p>忘記曾經一次又一次看到 Connection Reset 頁面時的沮喪心情，向西廂計劃的貢獻者們致敬！<span id="more-453"></span></p>
<p>ps.<br />
GFW 一要審查過濾，二不能影響性能，這兩點早就決定了它的命運。</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://www.raptium.net/2008/06/20/two-worlds-how-many-dreams/" title="两个世界几个梦">两个世界几个梦</a></li><li><a href="http://www.raptium.net/2007/10/18/%e6%b2%b9%e6%9d%a1%e5%b8%ae%e4%bd%a0%e5%a5%bd-%e6%b2%b9%e6%9d%a1%e5%b8%ae%e5%86%8d%e8%a7%81/" title="油条帮你好 油条帮再见">油条帮你好 油条帮再见</a></li><li><a href="http://www.raptium.net/2007/06/13/%e5%86%99%e5%9c%a8flickr%e8%a2%ab%e5%92%8c%e8%b0%90%e4%b9%8b%e5%90%8e/" title="写在Flickr被和谐之后">写在Flickr被和谐之后</a></li><li><a href="http://www.raptium.net/2007/06/13/los-angeles/" title="@Los Angeles">@Los Angeles</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.raptium.net/2010/03/15/long-time-no-see-scholar-zhang/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>协同翻译工具之阴谋论</title>
		<link>http://www.raptium.net/2009/06/09/is-google-translato-toolkit-a-plot/</link>
		<comments>http://www.raptium.net/2009/06/09/is-google-translato-toolkit-a-plot/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 03:18:10 +0000</pubDate>
		<dc:creator>raptium</dc:creator>
				<category><![CDATA[唠唠叨叨]]></category>
		<category><![CDATA[瞎折腾]]></category>
		<category><![CDATA[google]]></category>
		<guid isPermaLink="false">http://www.raptium.net/?p=416</guid>
		<description><![CDATA[听说 Google 又有新服务推出，是一个翻译工具，叫做 Google Translator Toolkit。推出的似乎比较低调，看域名也不像是一个独立的新产品，可以算作 Google Translate 的一部分。 我小试了一下，没有太多... ]]></description>
			<content:encoded><![CDATA[<p>听说 Google 又有新服务推出，是一个翻译工具，叫做 <a href="http://translate.google.com/toolkit">Google Translator Toolkit</a>。推出的似乎比较低调，看域名也不像是一个独立的新产品，可以算作 Google Translate 的一部分。</p>
<p>我小试了一下，没有太多令人意外的地方：典型的 Google UI 设计——简洁，类似早些时候 Google Docs 的界面；拥有 <a href="http://en.wikipedia.org/wiki/Computer-assisted_translation">CAT</a> 软件基本的功能，多语言，自动翻译，词汇表导入……支持的格式也都是常见的那几种。基本的操作，似乎也没有太多可以研究——上传，选择语言，自动翻译，逐词句手工翻译，完成。</p>
<p>然而，这肯定不是全部，菜单上还有一个按钮——<strong>Share</strong>，这是一个协同翻译工具，你可以把需要翻译的文章和其他人共享，一同翻译，效率自然大大提高。除了共同翻译外，词汇表也可以共享，这又提高了翻译效率。然后，还有，那个叫做 Translation Memory 的东西，Google 给出的解释是 <em>A translation memory (TM) is a database of human translations</em> 这样，人工翻译的结果是可以存入数据库的。再注意到灰色字的提示 <em>If no TM is specified, translated segments are stored in out shared, global TM.</em> 原来，我们协同翻译的工作远比我们所想得更有意义，它们被存入了公共的数据库，凭借着 Google 在数据处理上的超级牛力，这些数据必定大大提高之后的翻译效率。于是，终于有人跳出来说，这，是一个阴谋！看到<a href="http://googlesystem.blogspot.com/2009/06/google-translator-toolkit.html#c7388000813909388161">此文</a>有人评论：<strong>翻译的成果竟然给 Google 使用下三滥手段偷了去，然后用来制造翻译产品并从中直接或间接牟利，作为一个专业的翻译，我，感到相当震惊！</strong></p>
<p>这么想来，这个工具虽然能够提高翻译效率同质量，Google 却做得有点不厚道，默认设置不应该是共享 Translation Memory 的，毕竟翻译也是人家辛苦劳动的成果，不经意间被利用，难免让人感到不快。</p>
<p>Anyway，作为一个不会翻译的非专业人士，我，愿意围观更多翻译作品的诞生……</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://www.raptium.net/2009/03/05/china-will-never-innovate/" title="中国人只会山寨？">中国人只会山寨？</a></li><li><a href="http://www.raptium.net/2008/04/24/where-is-the-torch/" title="火炬在哪里？">火炬在哪里？</a></li><li><a href="http://www.raptium.net/2007/11/16/google%e4%b9%9f%e4%b8%8d%e6%98%af%e9%82%a3%e4%b9%88%e5%8f%af%e6%80%95/" title="Google也不是那么可怕">Google也不是那么可怕</a></li><li><a href="http://www.raptium.net/2007/10/18/%e6%b2%b9%e6%9d%a1%e5%b8%ae%e4%bd%a0%e5%a5%bd-%e6%b2%b9%e6%9d%a1%e5%b8%ae%e5%86%8d%e8%a7%81/" title="油条帮你好 油条帮再见">油条帮你好 油条帮再见</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.raptium.net/2009/06/09/is-google-translato-toolkit-a-plot/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>它真的不是一个搜索引擎</title>
		<link>http://www.raptium.net/2009/05/15/its-not-a-search-engine/</link>
		<comments>http://www.raptium.net/2009/05/15/its-not-a-search-engine/#comments</comments>
		<pubDate>Sat, 16 May 2009 04:06:34 +0000</pubDate>
		<dc:creator>raptium</dc:creator>
				<category><![CDATA[唠唠叨叨]]></category>
		<category><![CDATA[瞎折腾]]></category>
		<category><![CDATA[WolframAlpha]]></category>
		<guid isPermaLink="false">http://www.raptium.net/?p=392</guid>
		<description><![CDATA[Wolfram 推出了一个叫做 WolframAlpha 的东西，之前网上有人把它称之为 Google 的挑战者，一时间得到了众多关注。然而它真的不是一个搜索引擎，它根本不是和 Google 竞争，它做和 Google 完全不同的... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wolfram.com/">Wolfram</a> 推出了一个叫做 <a href="http://www.wolframalpha.com">WolframAlpha</a> 的东西，之前网上有人把它称之为 Google 的挑战者，一时间得到了众多关注。然而<strong>它真的不是一个搜索引擎，它根本不是和 Google 竞争，它做和 Google 完全不同的事情</strong>。如果说它和 Google 有什么相似，那么最明显的只是——一个文本框——你输入词句，它给你信息。我没有说那个是搜索框，对，Google 的是搜索框，然而 WolframAlpha 的不是，它的输入框右边是个“=”，这是一个<strong>计算知识引擎</strong>（Computational Knowledge Engine），你在这里得到的信息，是算出来的。</p>
<p>前天一看到 Wolfram 这个词，就觉得似曾相识，而那个 Logo 更是相当面善，略加搜索才恍然大悟，<a href="http://en.wikipedia.org/wiki/Mathematica">Mathematica</a>！如果你不知道 Wolfram，你也应该听说 Mathematica，如果你不知道 Mathematica，那么，你总该听说过 <a href="http://en.wikipedia.org/wiki/MATLAB">MATLAB</a>…… Mathematica 是一个广泛使用的计算机代数系统，拥有强大的数值计算和符号运算能力。 我用过它，在我还是大一的时候，我懒得动手去算微积分作业，Mathematica 告诉了我答案，于是考试的时候我什么都不会，<a href="http://www.math.cuhk.edu.hk/course/mat1010/">那门课</a>我得了 B-……尽管如此，我还是很喜欢这个软件，虽然其实我不知道怎么用它。</p>
<p>一个数学计算软件摆在眼前，我就觉得有些头脑发热了——虽然我是学工科的，我并没有上很多数学课，而基础的数学我也可能学的不够好。对我来说，那都是些高深的东西，科学？计算？其实那些离我们并非太远，WolframAlpha 这次把一切搬到了网上，透过浏览器，在那个文本框中输入关键字，它用海量的数据和强劲的计算来告诉你想知道的信息。</p>
<div class="right inline">
<img src="http://www.raptium.net/wp-content/uploads/2009/05/integrate.png" alt="integrate x^2 dx from 0 to 1" title="integrate x^2 dx from 0 to 1" class="sided wp-image-403" /></div>
<p>我花了大概半个小时来玩 WolframAlpha，还没有算正式上线，它显得非常不稳定。不过几次尝试的结果还是让人感到欣喜。输入 integrate x^2 dx from 0 to 1，它会告诉你 x^2dx 从 0 到 1 的定积分是 1/3，还附带一个图，标注了阴影部分来解释；输入 force m=1kg a=1m/s^2，它会告诉你，让质量为1千克的物体产生1米每平方秒的加速度，需要的力是1牛顿；输入 The Chinese University of Kong Kong，它会告诉你香港中文大学成立于1963年，大约有1万8千学生，本地生学费6千美元一年，国际生学费1万2千美元一年；输入 mortgage 5% 3 years $100k，它会告诉你，5分利息的按揭贷款10万美元，3年还清的话，每月要还2997美元，最后交了7895美元的利息……输入 D# 会得到什么？哦，五线谱和键盘图，还有 369.994Hz……</p>
<p>由于服务器不稳定，我不能试验太多东西，很多基于 JavaScript 的功能也不能正常工作。我尝试了 Firefox, IE 和 Safari，似乎都是这样，说明并非浏览器兼容性问题。就目前来看，我觉得 WolframAlpha 很好玩，但我不知道将来会是怎样，会不会很有用。它不会改变我依赖 Google 的习惯，如果非要说产生什么影响，我想被影响更多的应该是 Wikipedia，以后有些关于数字和图表的问题，问过 Google 和 Wikipedia 之后，我也许会试试 WolframAlpha。</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>No Related Post</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.raptium.net/2009/05/15/its-not-a-search-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx 的 wordpress rewrite 规则</title>
		<link>http://www.raptium.net/2009/05/01/wordpress-rewrite-rule-for-nginx/</link>
		<comments>http://www.raptium.net/2009/05/01/wordpress-rewrite-rule-for-nginx/#comments</comments>
		<pubDate>Sat, 02 May 2009 06:41:36 +0000</pubDate>
		<dc:creator>raptium</dc:creator>
				<category><![CDATA[瞎折腾]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[wordpress]]></category>
		<guid isPermaLink="false">http://www.raptium.net/?p=374</guid>
		<description><![CDATA[我目前在用的 nginx 设置就是这个，已经包含了 WP Super Cache 的 rewrite rule，大部分内容是我搜来的，很不幸暂时找不到来自哪里了…… 其实网上类似的内容太多了～ server { listen 80; server_name www.exa... ]]></description>
			<content:encoded><![CDATA[<p>我目前在用的 nginx 设置就是这个，已经包含了 <a href="http://wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache</a> 的 rewrite rule，大部分内容是我搜来的，很不幸暂时找不到来自哪里了…… 其实网上类似的内容太多了～</p>
<pre>server {
  listen 80;
  server_name www.example.net;
  location / {
    index index.php;
    root /var/host/wordpress;
    gzip_static on;
    if (-f $request_filename) {
      break;
    }
    set $supercache_file '';
    set $supercache_uri $request_uri;
    if ($request_method = POST) {
      set $supercache_uri '';
    }
    if ($query_string) {
      set $supercache_uri '';
    }
    if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" ) {
      set $supercache_uri '';
    }
    if ($supercache_uri ~ ^(.+)$) {
      set $supercache_file /wp-content/cache/supercache/$http_host/$1index.html;
    }
    if (-f $document_root$supercache_file) {
      rewrite ^(.*)$ $supercache_file break;
    }
    if (!-e $request_filename) {
      rewrite . /index.php last;
    }
  }
  location ~ .*\.php5?$ {
    include fastcgi_params;
    root /var/host/wordpress;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass unix:/var/run/php_fcgi.sock;
    fastcgi_index index.php;
  }
}</pre>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://www.raptium.net/2009/05/01/centos-nginx-php-config-howto/" title="[配置笔记]CentOS + nginx + PHP">[配置笔记]CentOS + nginx + PHP</a></li><li><a href="http://www.raptium.net/2009/03/27/bad-gateway-to-xiaonei/" title="校内出错的那几分钟">校内出错的那几分钟</a></li><li><a href="http://www.raptium.net/2009/03/05/china-will-never-innovate/" title="中国人只会山寨？">中国人只会山寨？</a></li><li><a href="http://www.raptium.net/2009/02/23/who-stole-my-ip/" title="ARP 擒贼记">ARP 擒贼记</a></li><li><a href="http://www.raptium.net/2009/01/19/initd-script-for-nginx-redhat/" title="init.d script for nginx, RedHat">init.d script for nginx, RedHat</a></li><li><a href="http://www.raptium.net/2009/01/14/nginx-awstats-or-not/" title="nginx, AWStats or Not?">nginx, AWStats or Not?</a></li><li><a href="http://www.raptium.net/2008/11/27/ubuntu-nginx-mysql-php-config/" title="[配置笔记]Ubuntu + nginx + MySQL + PHP">[配置笔记]Ubuntu + nginx + MySQL + PHP</a></li><li><a href="http://www.raptium.net/2008/04/02/stillalive/" title="我的博客还活着">我的博客还活着</a></li><li><a href="http://www.raptium.net/2008/02/24/%e6%9c%ac%e7%ab%99%e6%90%ac%e5%ae%b6%e4%ba%86/" title="本站搬家了~">本站搬家了~</a></li><li><a href="http://www.raptium.net/2007/09/29/%e5%92%b1%e4%b9%9f%e8%b5%b6%e6%97%b6%e9%ab%a6%e5%8d%8723/" title="咱也赶时髦升2.3">咱也赶时髦升2.3</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.raptium.net/2009/05/01/wordpress-rewrite-rule-for-nginx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[配置笔记]CentOS + nginx + PHP</title>
		<link>http://www.raptium.net/2009/05/01/centos-nginx-php-config-howto/</link>
		<comments>http://www.raptium.net/2009/05/01/centos-nginx-php-config-howto/#comments</comments>
		<pubDate>Fri, 01 May 2009 17:51:07 +0000</pubDate>
		<dc:creator>raptium</dc:creator>
				<category><![CDATA[瞎折腾]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>
		<guid isPermaLink="false">http://www.raptium.net/?p=345</guid>
		<description><![CDATA[之前的这篇文章似乎是挖了个坑一直没填，然而每每出现这种情况的时候，都会发现还偏偏总有人通过 Google 搜索过来……一定让不少人失望了，真是过意不去～于是这次重新写一篇，但愿能把... ]]></description>
			<content:encoded><![CDATA[<p><em>之前的<a href="/2008/11/27/ubuntu-nginx-mysql-php-config/">这篇文章</a>似乎是挖了个坑一直没填，然而每每出现这种情况的时候，都会发现还偏偏总有人通过 Google 搜索过来……一定让不少人失望了，真是过意不去～于是这次重新写一篇，但愿能把坑填上……</em></p>
<p>和上次略有不同，这次 Linux 发行版是用的 CentOS，因为最近一段时间来其实我接触最多的还是 RHEL，所以就不写 Ubuntu 了。MySQL 也不在本文叙述范围之内，我实际应用的时候是直接 yum install mysql-server 装的，没有什么好说的。</p>
<p>nginx 用了 0.7.x 开发版。php 当然是通过 fastcgi 运行，不过没有用从 lighttpd 里分离出来的 spawn-fcgi，而是用了 php-fpm 这个补丁。<br />
<span id="more-345"></span><br />
<strong>编译安装 nginx</strong></p>
<p>用 yum 安装依赖包</p>
<pre>yum install gcc openssl-devel pcre-devel zlib-devel</pre>
<p>下载最新版的 nginx，并解压缩。</p>
<pre>cd /usr/local/src
wget http://sysoev.ru/nginx/nginx-0.7.53.tar.gz
tar zxvf nginx-0.7.53.tar.gz
rm -rf nginx-0.7.53.tar.gz</pre>
<p>编译选项，取自 <a href="http://wiki.nginx.org/NginxInstallOptions">nginx wiki</a>，这个配置适合 RHEL/CentOS，已经带了几个常用的模块。</p>
<pre>cd /usr/local/src/nginx-0.7.53
./configure \
  --prefix=/usr \
  --sbin-path=/usr/sbin/nginx \
  --conf-path=/etc/nginx/nginx.conf \
  --error-log-path=/var/log/nginx/error.log \
  --pid-path=/var/run/nginx/nginx.pid  \
  --lock-path=/var/lock/nginx.lock \
  --user=nginx \
  --group=nginx \
  --with-http_ssl_module \
  --with-http_flv_module \
  --with-http_gzip_static_module \
  --http-log-path=/var/log/nginx/access.log \
  --http-client-body-temp-path=/var/tmp/nginx/client/ \
  --http-proxy-temp-path=/var/tmp/nginx/proxy/ \
  --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/
make
make install</pre>
<p>由于编译时指定了默认用户和组都为 nginx，所以还要创建一下。</p>
<pre>groupadd nginx
useradd -d /home/nginx -g nginx nginx</pre>
<p><strong>编译安装 PHP</strong></p>
<p>php-fpm 只有针对 PHP 5.2.8 的补丁，尚不支持最新的 5.2.9，所以只能下载较旧的版本了。</p>
<pre>cd /usr/local/src
wget http://hk.php.net/distributions/php-5.2.8.tar.bz2
tar jxvf php-5.2.8.tar.bz2
rm -f php-5.2.8.tar.bz2</pre>
<p>下载 php-fpm 补丁</p>
<pre>cd /usr/local/src
wget http://php-fpm.anight.org/downloads/head/php-5.2.8-fpm-0.5.10.diff.gz
gzip -cd php-5.2.8-fpm-0.5.10.diff.gz | patch -d php-5.2.8 -p1
</pre>
<p>配置安装 php</p>
<pre>cd /usr/local/src/php-5.2.8
./configure \
  --enable-fastcgi \
  --enable-fpm \
  --with-mysql \
  --with-mcrypt \
  --with-zlib
make
make install</pre>
<p>这个参数至少可以运行 wordpress，如果要其他更加复杂的 php 应用，可能需要加入其他 extension。<br />
如果缺少依赖的话，试试这些</p>
<pre>yum install mysql-devel libmcrypt-devel zlib-devel libxml2-devel libtool-ltdl-devel</pre>
<p><strong>nginx 和 php-fpm 的设置</strong><br />
nginx 的配置文件位于 /ect/nginx/nginx.conf<br />
最好在 http {} 的 最后加入 include vhosts/*.conf;<br />
以后其他 virtual host 可以写在 vhosts 下面<br />
比如 一个 PHPMyAdmin 的配置可以这么写</p>
<pre>server {
    listen 80;
    server_name sql.example.net;
    location / {
        index index.php;
        root /var/host/phpMyAdmin;
    }
    location ~ .*\.php5?$ {
        include fastcgi_params;
        root /var/host/phpMyAdmin;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_pass unix:/var/run/php_fcgi.sock;
        fastcgi_index index.php;
    }
}</pre>
<p>其中 unix:/var/run/php_fcgi.sock 要和 php-fpm 的配置相对应，php-fpm 的默认配置（/usr/local/etc/php-fpm.conf）也基本上够用了。要修改的大概只有这一段</p>
<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;value</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;listen_address&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>/var/run/php_fcgi.sock<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;value</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;listen_options&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;value</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;backlog&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>-1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;value</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;owner&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>nginx<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;value</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;group&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>nginx<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;value</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;mode&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>0666<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://www.raptium.net/2008/11/27/ubuntu-nginx-mysql-php-config/" title="[配置笔记]Ubuntu + nginx + MySQL + PHP">[配置笔记]Ubuntu + nginx + MySQL + PHP</a></li><li><a href="http://www.raptium.net/2009/02/23/who-stole-my-ip/" title="ARP 擒贼记">ARP 擒贼记</a></li><li><a href="http://www.raptium.net/2009/01/19/initd-script-for-nginx-redhat/" title="init.d script for nginx, RedHat">init.d script for nginx, RedHat</a></li><li><a href="http://www.raptium.net/2009/05/01/wordpress-rewrite-rule-for-nginx/" title="nginx 的 wordpress rewrite 规则">nginx 的 wordpress rewrite 规则</a></li><li><a href="http://www.raptium.net/2009/03/27/bad-gateway-to-xiaonei/" title="校内出错的那几分钟">校内出错的那几分钟</a></li><li><a href="http://www.raptium.net/2009/03/05/china-will-never-innovate/" title="中国人只会山寨？">中国人只会山寨？</a></li><li><a href="http://www.raptium.net/2009/01/14/nginx-awstats-or-not/" title="nginx, AWStats or Not?">nginx, AWStats or Not?</a></li><li><a href="http://www.raptium.net/2007/07/14/fanfou%e5%a5%bd%e5%a5%bd%e5%ad%a6%e4%b9%a0%ef%bc%8c%e5%a4%a9%e5%a4%a9%e6%a0%a1%e5%86%85/" title="fanfou=好好学习，天天校内">fanfou=好好学习，天天校内</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.raptium.net/2009/05/01/centos-nginx-php-config-howto/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>校内出错的那几分钟</title>
		<link>http://www.raptium.net/2009/03/27/bad-gateway-to-xiaonei/</link>
		<comments>http://www.raptium.net/2009/03/27/bad-gateway-to-xiaonei/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 16:22:58 +0000</pubDate>
		<dc:creator>raptium</dc:creator>
				<category><![CDATA[瞎折腾]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[校内]]></category>
		<guid isPermaLink="false">http://www.raptium.com/?p=329</guid>
		<description><![CDATA[貌似最近通过搜索 校内 502 Bad Gateway 来到此页面的同学越来越多了。简单明了的告诉你，这是校内的服务器不行了，不是用户的问题，也许等等就好了，如果等等也不好……那……校内，你倒... ]]></description>
			<content:encoded><![CDATA[<blockquote><p>貌似最近通过搜索 <strong>校内 502 Bad Gateway</strong> 来到此页面的同学越来越多了。简单明了的告诉你，这是校内的服务器不行了，不是用户的问题，也许等等就好了，如果等等也不好……那……校内，你倒底行不行啊？ <em>&#8212; Updated on 2 Jun, 2009</em></p></blockquote>
<p>晚上开着校内的时候，突然弹了个框出来，说是 502 Bad Gateway，然后按刷新就看不到校内了，看到了……我熟悉的 nginx 502 错误页面～ 当时就想，校内又出错了啊，还是 nginx，可以研究一下哈。</p>
<p>立刻问了一下小野猪，他说校内是可以上的，就是有点慢。而我却是立刻返回 502 页面，服务器 nginx 0.6.32，校内正常的服务器应该是 resin 才对。两个人访问结果不同的情况，除了我 RP 差之外，还是有其他原因的，我猜就是我这两天碰巧在搞得 DNS Round Robin</p>
<pre>$ nslookup xiaonei.com
Server:        208.67.222.222
Address:    208.67.222.222#53
Non-authoritative answer:
Name:    xiaonei.com
Address: 211.157.20.6
Name:    xiaonei.com
Address: 211.157.20.3
Name:    xiaonei.com
Address: 211.157.20.2</pre>
<p>和 google.com 一样，xiaonei.com 解析的时候也会有三个 IP，DNS Server 会在每次回复的时候改变顺序，不过究竟用哪个 IP 还是客户端说了算，有时候 DNS Cache 久了，你可能长时间使用一个 IP 访问。不过这个在减低服务器负载上还是有效果的，因为人多了之后，还是大致上 IP 均分的。</p>
<p>DNS Round Robin  的实现是很容易，然后也有很大的弊端：由于 DNS propagation delay 通常要很久，几十分钟到几个小时甚至几天都有可能，所以如果一个服务器要临时下线的话，客户端是不知道这一情况的，还是会继续访问那个 IP，并不会被自动分流到好得 IP 上去。当然还是可以在 router/firewall 上把下线的 IP 分给某一台在线的服务器，不过要做到完全平滑过渡似乎是不大可能了（你至少得把所有 TCP 连接给断开才能改吧？）</p>
<p>回到校内这个问题上来…… 我试着反复清空 DNS cache，情况是，有一个 IP 返回 502，两个 IP 是好的，之后似乎情况又有变化，甚至有一段时间有两个 IP 是 502…… 于是猜测校内在重启 back-end server，但由于 DNS round robin 并不能解决平滑过渡的问题，即使是三只服务器依次重启，我还是遇到了出错的页面。</p>
<p>至于 nginx 的出现，我并不觉得惊讶，因为 nginx 的优秀性能总能让用它的人从中受益，校内可能省了点硬件的钱，我们则得到更好的用户体验～ 对于校内背后的服务器结构，我依旧迷惑。最外层是 squid，直接打 IP 就能看出来，而且即使 nginx 报 502 的时候，同一个 IP 还是能看到 squid，所以 squid 是最外层。然后是 nginx，可是再里面呢？resin？如果用 nginx 做 reverse proxy 的话，他的 server tag 是不会变的，永远都会自称 nginx，这个和 Apache 不同， Apache mod_proxy 做 reverse proxy 的话，server tag 是显示的 back-end server 的 server tag。于是迷惑了，更加奇怪的是，既然用到了 nginx，为什么校内的静态图片却是在 Apache 上呢…… 也许要等下次，下下次，不知道多少次校内出错的时候才能猜出来了～～</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://www.raptium.net/2009/03/05/china-will-never-innovate/" title="中国人只会山寨？">中国人只会山寨？</a></li><li><a href="http://www.raptium.net/2008/11/27/ubuntu-nginx-mysql-php-config/" title="[配置笔记]Ubuntu + nginx + MySQL + PHP">[配置笔记]Ubuntu + nginx + MySQL + PHP</a></li><li><a href="http://www.raptium.net/2009/05/01/wordpress-rewrite-rule-for-nginx/" title="nginx 的 wordpress rewrite 规则">nginx 的 wordpress rewrite 规则</a></li><li><a href="http://www.raptium.net/2009/05/01/centos-nginx-php-config-howto/" title="[配置笔记]CentOS + nginx + PHP">[配置笔记]CentOS + nginx + PHP</a></li><li><a href="http://www.raptium.net/2009/02/23/who-stole-my-ip/" title="ARP 擒贼记">ARP 擒贼记</a></li><li><a href="http://www.raptium.net/2009/01/19/initd-script-for-nginx-redhat/" title="init.d script for nginx, RedHat">init.d script for nginx, RedHat</a></li><li><a href="http://www.raptium.net/2009/01/14/nginx-awstats-or-not/" title="nginx, AWStats or Not?">nginx, AWStats or Not?</a></li><li><a href="http://www.raptium.net/2008/06/26/let-us-copy-with-xiaonei-api/" title="校内开放API：让我们一起抄袭？">校内开放API：让我们一起抄袭？</a></li><li><a href="http://www.raptium.net/2007/07/14/fanfou%e5%a5%bd%e5%a5%bd%e5%ad%a6%e4%b9%a0%ef%bc%8c%e5%a4%a9%e5%a4%a9%e6%a0%a1%e5%86%85/" title="fanfou=好好学习，天天校内">fanfou=好好学习，天天校内</a></li><li><a href="http://www.raptium.net/2007/06/22/%e6%8a%8a%e9%a5%ad%e5%90%a6%e6%b7%bb%e5%8a%a0%e5%88%b0%e6%a0%a1%e5%86%85%e7%9a%84%e7%ae%80%e5%8d%95%e6%96%b9%e6%b3%95/" title="把饭否添加到校内的简单方法">把饭否添加到校内的简单方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.raptium.net/2009/03/27/bad-gateway-to-xiaonei/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>中国人只会山寨？</title>
		<link>http://www.raptium.net/2009/03/05/china-will-never-innovate/</link>
		<comments>http://www.raptium.net/2009/03/05/china-will-never-innovate/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 04:32:52 +0000</pubDate>
		<dc:creator>raptium</dc:creator>
				<category><![CDATA[唠唠叨叨]]></category>
		<category><![CDATA[瞎折腾]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[山寨]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[QQ]]></category>
		<category><![CDATA[QZHTTP]]></category>
		<guid isPermaLink="false">http://www.raptium.com/?p=321</guid>
		<description><![CDATA[开始有个习惯每个月看看 NetCraft 的 Web Server Survey，了解一下最新的服务器发展。通常总是那么几个产品上下沉浮，感觉也就和看浏览器市场占有率差不多。却没有浏览器竞争来的激烈，服务器... ]]></description>
			<content:encoded><![CDATA[<p>开始有个习惯每个月看看 NetCraft 的 Web Server Survey，了解一下最新的服务器发展。通常总是那么几个产品上下沉浮，感觉也就和看浏览器市场占有率差不多。却没有浏览器竞争来的激烈，服务器排名也没那么好看。</p>
<p>和浏览器不同的是，服务器可以是独家享用的，Google 的 GFE 就是占据 第三的宝座，却不能让外人尝鲜。这也说明 Google 的强大，看了报告总是想，他一家公司做的服务器，自家用，竟然能排到第三</p>
<p>然而，2月的报告出来看了感觉很雷……真的，真的是雷了。Google 的第三没了……给腾讯抢走了……竟然，是腾讯！仔细看看倒也觉得不出奇了，腾讯出了个自称是 QZHTTP 的 Web Server，然后把旗下 QZone 的网站都给换上了 QZHTTP。NetCraft 的统计是按照域名算的，而 QZone 是无数子域名的泛解析，我不知道是不是每个 QQ 用户都会自动拥有 QZone 的子域名，反正这一下子就是来了2千万个域名，nginx 说是发展很快，出道这几年也才有3百万个站点……</p>
<p>于是大家的好奇心也就不在这“为啥有这么多站点”上面，而是，QZHTTP 到底是个什么东西？略加搜索，在某外国友人的博客找到<a href="http://opendotdotdot.blogspot.com/2009/02/chinese-web-servers-are-coming.html">此文</a>。</p>
<p>外国人也是关心 QZHTTP 的，不过他们会比我们多想一点，就是，怎么是“中国人”做了个牛逼服务器出来？于是激烈的讨论也就展开了。所谓激烈，自然是有各种观点，基本分了这么几类：</p>
<ul>
<li> <strong>技术</strong>派：QZHTTP 不知道用了啥技术，也许就是换了名字的 Apache？IIS都有可能啊。拿各种软件测一下，好像是 thttpd？不过在没有可靠信息的情况下，也不能乱说。我宁愿知道更多有关的信息啊。</li>
<li> <strong>中国人爱山寨</strong>派：QZHTTP，呸！明显是山寨的 Apache 啊，中国人 Windows 用盗版的，迪士尼乐园有山寨的，Web Server 肯定也是假的！</li>
<li> <strong>国货当自强</strong>派：我就是腾讯的！QZHTTP 就是我们自己写的，和 Apache 什么开源软件，通通没有关系！</li>
<li> <strong>“中国人都不行”之无逻辑</strong>派：中国人能写 Web Server？那牛奶里怎么会有三聚氰胺的？</li>
<li> <strong>“楼上某些人法盲”</strong>派：你们想什么啊，抄就抄呗，开源的 License 只规定，改了之后如果发布出去，才需要公开代码。人家只是改了自己用，给别人提供服务，那就不用公开源代码啊。那明明是合法的嘛。法盲们，回家好好看看那些 License 吧～</li>
<li> <strong>“对对！中国人都不行”之反语</strong>派：是啊是啊，中国人都不行，完全不懂创新，只会抄袭。什么指南针、印刷术、火药、造纸术，通通都是抄的。开源软件的协议里都写了嘛，本软件的代码大家随便看，随便改，就是中国人不行～</li>
</ul>
<p>对于 QZHTTP 和相关讨论，我的观点和认识是：</p>
<ul>
<li>QZHTTP 应该不是简单的 Apache 换了名字。我想腾讯没有必要这么做，因为 qq.com 还是用的 Apache，而用 Apache 不是什么丢人的事，除非腾讯玩非主流～</li>
<li>自称来自腾讯的某人说法太过绝对了一点。has nothing to do with 说的轻松，我不否认腾讯有能力写一个自己的 Web Server，但是我觉得一个程序员在开始写 Web Server  之前没有好好研究过 Apache 或者其他优秀的开源项目就动手，是难以令人置信的。</li>
<li>中国人的不注意知识产权以及食品安全问题，早已伤害了各国人民的感情，也许脆弱的不仅仅是我们，但最后受伤的还是我们。</li>
<li>老祖宗创造四大发明的那个时代已经远去，要证明中国人除了山寨还是会创新，或者山寨也是另一种创新，这都得靠我们自己。</li>
</ul>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://www.raptium.net/2009/03/27/bad-gateway-to-xiaonei/" title="校内出错的那几分钟">校内出错的那几分钟</a></li><li><a href="http://www.raptium.net/2008/11/27/ubuntu-nginx-mysql-php-config/" title="[配置笔记]Ubuntu + nginx + MySQL + PHP">[配置笔记]Ubuntu + nginx + MySQL + PHP</a></li><li><a href="http://www.raptium.net/2009/11/18/tencen/" title="腾讯宣讲会">腾讯宣讲会</a></li><li><a href="http://www.raptium.net/2009/06/09/is-google-translato-toolkit-a-plot/" title="协同翻译工具之阴谋论">协同翻译工具之阴谋论</a></li><li><a href="http://www.raptium.net/2009/05/01/wordpress-rewrite-rule-for-nginx/" title="nginx 的 wordpress rewrite 规则">nginx 的 wordpress rewrite 规则</a></li><li><a href="http://www.raptium.net/2009/05/01/centos-nginx-php-config-howto/" title="[配置笔记]CentOS + nginx + PHP">[配置笔记]CentOS + nginx + PHP</a></li><li><a href="http://www.raptium.net/2009/02/23/who-stole-my-ip/" title="ARP 擒贼记">ARP 擒贼记</a></li><li><a href="http://www.raptium.net/2009/01/19/initd-script-for-nginx-redhat/" title="init.d script for nginx, RedHat">init.d script for nginx, RedHat</a></li><li><a href="http://www.raptium.net/2009/01/14/nginx-awstats-or-not/" title="nginx, AWStats or Not?">nginx, AWStats or Not?</a></li><li><a href="http://www.raptium.net/2008/04/24/where-is-the-torch/" title="火炬在哪里？">火炬在哪里？</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.raptium.net/2009/03/05/china-will-never-innovate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ARP 擒贼记</title>
		<link>http://www.raptium.net/2009/02/23/who-stole-my-ip/</link>
		<comments>http://www.raptium.net/2009/02/23/who-stole-my-ip/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 02:52:51 +0000</pubDate>
		<dc:creator>raptium</dc:creator>
				<category><![CDATA[瞎折腾]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nginx]]></category>
		<guid isPermaLink="false">http://www.raptium.com/?p=311</guid>
		<description><![CDATA[注意！本文涉及标题党 之前一直在做的一个 reverse proxy，在 RHEL 上用了 nginx 。基本功能是根据 cookie 做 load balance 和特定网页内容的替换。功能上是没有问题了吧，性能的话我觉得能满足公司需... ]]></description>
			<content:encoded><![CDATA[<p><em>注意！本文涉及标题党</em></p>
<p>之前一直在做的一个 reverse proxy，在 RHEL 上用了 nginx 。基本功能是根据 cookie 做 load balance 和特定网页内容的替换。功能上是没有问题了吧，性能的话我觉得能满足公司需要，虽然看上去不是太好。</p>
<p>这个小项目一直是不顺利的，主要原因就是 nginx 得不到认可。基本上和每一个人说我用了什么的时候，都要先介绍 nginx。Net Craft 给的报告是不难看，好歹也算第四大应用广泛的 Web Server 了。前三是 Apache、IIS 和 GFE。Apache 做 reverse proxy 太慢，IIS 我不会用（也不知能不能做 reverse proxy），GFE 是人家的私人珍藏…… 那么用 nginx 还是有些道理的吧。</p>
<p>昨天，正当梁生还在质疑 nginx seems too young to be proven 的时候，我们的 server 开始变得不稳定。基本上就是好一阵坏一阵，不能用的时候错误很奇怪，不是连不到而是 connection refused。不但网页看不到，连 ssh 都连不到。连上的 ssh 也会在几分钟内断开。起先是以为网线接触不良，但是看 message.log 没有看到 eth0 down 的迹象。于是只好带着疑问下班，哦，我真不愿意看到这种情况啊。梁生会不会得意的笑，哈，我说你这 server 不行吧，too young～</p>
<p>我知道这个问题和 nginx 是无关的，应该是网络问题。硬件是不大会有问题的，我一直以为这还是软件的问题。不知道为啥，遇到诡异的局域网问题，我就会自然的想到 ARP。百度上搜 ARP 的结果是恐怖的，Google 上要好些，曾几何时 ARP 劫持在中国大陆的泛滥，让很多人以为这是一个病毒的名字。我是觉得处处防范的企业内部出现病毒是不大可能的，而且现在的故障不像是 ARP 劫持，倒像是……哦，谁偷了我的 IP 啊～～</p>
<p>Keats 给我的信息是很有用的，就是不断地 ping 那个 IP，TTL 值竟然会变，一会儿 64 一会儿 128，64的时候能连上，128就connection refused。于是问题变得清晰起来，这分明是两台机器嘛，RHEL5 的默认 TTL 是 64 的，返回 128 估计就是给某台 Windows XP 抢了 IP。于是乎，arp -a 蹲点蹲了一阵，终于让我揪出了抢我 IP 的 MAC Address～ 交给 Keats，剩下的事情，就不是我们 Team 的啦，Technical Team 的同事们加油啊，你们有什么妙招根据 MAC 地址把那台机器的主人找出来吗……</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://www.raptium.net/2009/05/01/centos-nginx-php-config-howto/" title="[配置笔记]CentOS + nginx + PHP">[配置笔记]CentOS + nginx + PHP</a></li><li><a href="http://www.raptium.net/2009/01/19/initd-script-for-nginx-redhat/" title="init.d script for nginx, RedHat">init.d script for nginx, RedHat</a></li><li><a href="http://www.raptium.net/2008/11/27/ubuntu-nginx-mysql-php-config/" title="[配置笔记]Ubuntu + nginx + MySQL + PHP">[配置笔记]Ubuntu + nginx + MySQL + PHP</a></li><li><a href="http://www.raptium.net/2009/05/01/wordpress-rewrite-rule-for-nginx/" title="nginx 的 wordpress rewrite 规则">nginx 的 wordpress rewrite 规则</a></li><li><a href="http://www.raptium.net/2009/03/27/bad-gateway-to-xiaonei/" title="校内出错的那几分钟">校内出错的那几分钟</a></li><li><a href="http://www.raptium.net/2009/03/05/china-will-never-innovate/" title="中国人只会山寨？">中国人只会山寨？</a></li><li><a href="http://www.raptium.net/2009/01/14/nginx-awstats-or-not/" title="nginx, AWStats or Not?">nginx, AWStats or Not?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.raptium.net/2009/02/23/who-stole-my-ip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
