<?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>季节不曾为我赶路SorryDreams的Blog</title>
	<atom:link href="http://blog.frompku.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.frompku.com</link>
	<description>关注互联网和电影的独立博客</description>
	<lastBuildDate>Wed, 09 Nov 2011 06:58:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
  <link>http://blog.frompku.com</link>
  <url>http://blog.frompku.com/</url>
  <title>季节不曾为我赶路SorryDreams的Blog</title>
</image>
		<item>
		<title>海淘和入手nook color</title>
		<link>http://blog.frompku.com/2011/11/%e6%b5%b7%e6%b7%98%e5%92%8c%e5%85%a5%e6%89%8bnook-color.html</link>
		<comments>http://blog.frompku.com/2011/11/%e6%b5%b7%e6%b7%98%e5%92%8c%e5%85%a5%e6%89%8bnook-color.html#comments</comments>
		<pubDate>Wed, 09 Nov 2011 06:58:47 +0000</pubDate>
		<dc:creator>SorryDreams</dc:creator>
				<category><![CDATA[散记断想]]></category>
		<category><![CDATA[Nook Color]]></category>
		<category><![CDATA[平板]]></category>

		<guid isPermaLink="false">http://blog.frompku.com/?p=746</guid>
		<description><![CDATA[很久没有来更新了，几次来都是删掉一些 spam。
就好像来清理一点杂草。至于施肥浇水，开花结果，似乎就没有那样的兴致。
并不是不想更新，而是我习惯了要么不写，要写就写一些费时间费... ]]></description>
			<content:encoded><![CDATA[<p>很久没有来更新了，几次来都是删掉一些 spam。</p>
<p>就好像来清理一点杂草。至于施肥浇水，开花结果，似乎就没有那样的兴致。</p>
<p>并不是不想更新，而是我习惯了要么不写，要写就写一些费时间费气力的文章。无论是有那么些技术含量的教程或者有那么些自己的思考在里面的影评。</p>
<p>最近的新鲜事是第一次海淘，入手<a href="http://www.barnesandnoble.com/" target="_blank"> Nook Color </a>，是从官网直接买的 149 刀的官翻。<span id="more-746"></span>然后转运到一家华人快递（在此不说商家名字，以免被人认为是软文），再转到国内，从下单到入手，大概 2 个星期多一点。2.2 磅，邮费是不到 12 刀。一共花了 RMB 1000 左右。</p>
<p>汇率都快到 6.3 了。想当初注册 frompku.com 这个域名的时候还是 7 点几。</p>
<p>这个不是我真正意义上的第一次“海淘”。之前还帮一个朋友买过一张 CD，是在灌录 CD 的歌手的网站上直接买的，邮寄到国内，几乎等了 1 个月。下单后才想起来邮寄 CD 这东西风险很大啊。</p>
<p>这次买 Nook Color 也担心过被税。电子产品被税的可能性较高。虽然两次海淘，最后的结局都算顺利，但还是提醒大家一下，海淘有风险，购物需谨慎。</p>
<p>Nook Color 拿到手后当天就破解装了 CM7 ，本来想官破了先玩玩几天的，但是不知道为什么官破了也不能安装 app ，似乎哪个地方的版本没选对，了解了下 1.2 官破也不完美，干脆就直接刷了 CM7。</p>
<p>我的手机也是用的 CM 系列，所以用起来基本不存在障碍，CM7 为没有菜单、返回和搜索物理按键的平板做了一些小小的优化，在实际使用上还是可以接受的——当然用户友好度上就别挑剔太多了。</p>
<p>买 Nook Color 的初衷是在平时路上的时候可以看看一些开放教程、电子书等等，比起用手机上论坛，看糗百，少一点蹉跎青春的内疚感囧。</p>
<p>当然了，如果支持 3G 和 1080p 的话就完美了。但世界上没有完美。我已经习惯了不完美地活着（不是装深沉）。</p>
<p>因为没买过原价，所以我也说不清这个官翻和全新的有什么差别，屏幕是完美屏，没有坏点蓝点什么的，这点就 OK 了。</p>
<p>到手没几天 N&#038;B 就出了升级版的 Nook Tablet，外观和 Nook Color 一样，升级了配置，支持了高清，但还是没有 3 G，和 Kindle fire 不同的是支持 TF 扩展（Nook Color也支持)，这样看来 N&#038;B 系类的实用性应该超过了 Amazon，等过几个月破解了，出了100多刀的官翻，相信又是一款相当有吸引力的平板。</p>
<h3  class="related_post_title">随机日志</h3><ul class="related_post"><li><a href="http://blog.frompku.com/2006/02/%e6%88%91%e4%b8%8d%e5%9c%a8%e6%84%8f%e6%88%91%e5%9c%a8%e6%84%8f%e4%bb%a5%e5%8f%8a%e5%8e%9f%e8%b0%85%e4%b8%8e%e8%a2%ab%e5%8e%9f%e8%b0%85-2.html" title="我不在意我在意以及原谅与被原谅">我不在意我在意以及原谅与被原谅</a></li><li><a href="http://blog.frompku.com/2009/03/song-today-daylight-of-the-evening.html" title="SONG TODAY Daylight of the evening">SONG TODAY Daylight of the evening</a></li><li><a href="http://blog.frompku.com/2009/07/song-today-ich-verlasse-heut-dein-herz.html" title="song-today-ich-verlasse-heut-dein-herz">song-today-ich-verlasse-heut-dein-herz</a></li><li><a href="http://blog.frompku.com/2009/07/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8redirection%e5%ae%9e%e7%8e%b0301%e9%87%8d%e5%ae%9a%e5%90%91.html" title="如何使用Redirection实现301重定向">如何使用Redirection实现301重定向</a></li><li><a href="http://blog.frompku.com/2008/06/%e5%b2%81%e6%9c%88%e6%97%a0%e7%97%95%ef%bc%8ctime-waits-for-no-one.html" title="岁月无痕，Time waits for no one">岁月无痕，Time waits for no one</a></li><li><a href="http://blog.frompku.com/2007/01/%e6%96%b0%e5%b9%b4%ef%bc%8c%e5%9c%a8%e8%bf%99%e4%b8%aa%e4%b8%96%e7%95%8c%e4%b8%ad%e7%9a%84%e4%bd%8d%e7%bd%ae.html" title="新年，在这个世界中的位置">新年，在这个世界中的位置</a></li><li><a href="http://blog.frompku.com/2009/03/%e5%8e%bb%e6%b5%b7%e8%be%b917.html" title="去海边17">去海边17</a></li><li><a href="http://blog.frompku.com/2008/08/%e7%89%b9%e9%9c%b2%e4%b9%8b%e6%ad%8c-%e5%9c%b0%e6%b5%b7%e6%88%98%e8%ae%b0.html" title="特露之歌-地海战记">特露之歌-地海战记</a></li><li><a href="http://blog.frompku.com/2009/02/%e5%8e%bb%e6%b5%b7%e8%be%b911.html" title="去海边11">去海边11</a></li><li><a href="http://blog.frompku.com/2011/03/9%e7%ba%a7%e5%9c%b0%e9%9c%87%e7%9a%84%e7%9c%9f%e5%ae%9e%e6%a2%a6%e5%a2%83.html" title="9级地震的真实梦境">9级地震的真实梦境</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.frompku.com/2011/11/%e6%b5%b7%e6%b7%98%e5%92%8c%e5%85%a5%e6%89%8bnook-color.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>最近累得一笔</title>
		<link>http://blog.frompku.com/2011/07/%e6%9c%80%e8%bf%91%e7%b4%af%e5%be%97%e4%b8%80%e7%ac%94.html</link>
		<comments>http://blog.frompku.com/2011/07/%e6%9c%80%e8%bf%91%e7%b4%af%e5%be%97%e4%b8%80%e7%ac%94.html#comments</comments>
		<pubDate>Mon, 18 Jul 2011 12:38:59 +0000</pubDate>
		<dc:creator>SorryDreams</dc:creator>
				<category><![CDATA[散记断想]]></category>
		<category><![CDATA[码字]]></category>

		<guid isPermaLink="false">http://blog.frompku.com/?p=743</guid>
		<description><![CDATA[最近两个星期真是累啊，用文明用语来说，就是累得一笔了。
但是，也过得很充实，也许是这三年来我觉得自己做的最有意义的工作之一。

可以用自己的文字写出一些有意义的东西……虽然... ]]></description>
			<content:encoded><![CDATA[<p>最近两个星期真是累啊，用文明用语来说，就是累得一笔了。</p>
<p>但是，也过得很充实，也许是这三年来我觉得自己做的最有意义的工作之一。<br />
<span id="more-743"></span><br />
可以用自己的文字写出一些有意义的东西……虽然我大概算是在网络这块副业钻研得得比码字的主业深的那种人，但在码字上获得一些小小的充实感还是很让我欣慰。</p>
<p>应对压力的能力在最近两三个月内似乎也得到了真正的提高。现在我，有信心相形于过去的自己，以更成熟和积极的态度来面对生活的种种。</p>
<p>后面还有很多工作等着我去做，恐怕依旧不能时常来这里更新了。似乎最近blog比较招spam，正在考虑是否设置更严格的验证。</p>
<h3  class="related_post_title">随机日志</h3><ul class="related_post"><li><a href="http://blog.frompku.com/2009/02/%e5%8e%bb%e6%b5%b7%e8%be%b915.html" title="去海边15">去海边15</a></li><li><a href="http://blog.frompku.com/2006/01/%e6%83%b3%e8%b5%b7%e6%9d%a5%e5%9b%9e%e5%ae%b6%e5%9c%a8t55%e8%bd%a6%e4%b8%8a%e7%9a%84%e4%b8%80%e6%ae%b5%e8%af%9dzz.html" title="想起来回家在T55车上的一段话(zz)">想起来回家在T55车上的一段话(zz)</a></li><li><a href="http://blog.frompku.com/2009/08/%e5%9c%a8%e6%81%af%e5%a3%a4%e4%b8%bb%e6%9c%ba%e4%b8%8a%e5%ae%89%e8%a3%85wpmu.html" title="在息壤主机上安装WPMU">在息壤主机上安装WPMU</a></li><li><a href="http://blog.frompku.com/2006/02/11%e6%9c%88%e7%a0%ad%e4%ba%ba%e8%82%8c%e8%82%a4%e7%9a%84%e9%9b%a8.html" title="11月砭人肌肤的雨">11月砭人肌肤的雨</a></li><li><a href="http://blog.frompku.com/2009/07/%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8picasa%e4%bd%9c%e4%b8%ba%e5%9b%be%e7%89%87%e5%a4%96%e9%93%be%e6%9c%8d%e5%8a%a1%e5%99%a8.html" title="如何使用Picasa作为图片外链服务器">如何使用Picasa作为图片外链服务器</a></li><li><a href="http://blog.frompku.com/2009/01/%e5%8e%bb%e6%b5%b7%e8%be%b907.html" title="去海边07">去海边07</a></li><li><a href="http://blog.frompku.com/2006/05/%e7%9c%9f%e7%9a%84%e5%be%88%e6%83%b3%e7%a9%bf%e7%89%9b%e4%bb%94%e8%a3%a4.html" title="真的很想穿牛仔裤">真的很想穿牛仔裤</a></li><li><a href="http://blog.frompku.com/2009/07/movie-the-week-%e6%88%98%e5%9c%ba%e4%b8%8a%e5%bf%ab%e4%b9%90%e7%9a%84%e5%9c%a3%e8%af%9e%e8%8a%82merry-christmas%ef%bc%8cmr-lawrence.html" title="Movie the Week 战场上快乐的圣诞节Merry Christmas，Mr Lawrence">Movie the Week 战场上快乐的圣诞节Merry Christmas，Mr Lawrence</a></li><li><a href="http://blog.frompku.com/2010/02/%e8%b0%81%e6%9d%a5%e6%8b%af%e6%95%91%e6%88%91%ef%bc%8c%e5%8f%af%e6%80%9c%e7%9a%84adsl%e4%b8%8a%e4%bc%a0%e9%80%9f%e5%ba%a6.html" title="谁来拯救我，可怜的ADSL上传速度">谁来拯救我，可怜的ADSL上传速度</a></li><li><a href="http://blog.frompku.com/2007/04/%e6%96%b0%e5%8d%9a%e5%bc%80%e5%bc%a0%ef%bc%8c%e6%88%91%e6%89%80%e8%ae%a4%e8%af%86%e7%9a%84blog.html" title="我所认识的blog">我所认识的blog</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.frompku.com/2011/07/%e6%9c%80%e8%bf%91%e7%b4%af%e5%be%97%e4%b8%80%e7%ac%94.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HK主机上线后该做的事情</title>
		<link>http://blog.frompku.com/2011/05/hk%e4%b8%bb%e6%9c%ba%e4%b8%8a%e7%ba%bf%e5%90%8e%e8%af%a5%e5%81%9a%e7%9a%84%e4%ba%8b%e6%83%85.html</link>
		<comments>http://blog.frompku.com/2011/05/hk%e4%b8%bb%e6%9c%ba%e4%b8%8a%e7%ba%bf%e5%90%8e%e8%af%a5%e5%81%9a%e7%9a%84%e4%ba%8b%e6%83%85.html#comments</comments>
		<pubDate>Wed, 25 May 2011 03:23:44 +0000</pubDate>
		<dc:creator>SorryDreams</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[yculer]]></category>
		<category><![CDATA[歪酷人]]></category>
		<category><![CDATA[香港主机]]></category>

		<guid isPermaLink="false">http://blog.frompku.com/?p=741</guid>
		<description><![CDATA[香港主机上线，请关注 Yculer 的官方博客：http://blog.yculer.com
更多细节不在这里赘述。我这里只是简单说明一下香港服务器上线过程中的“亮点”。
1 首次采用Cloudlinux，一个商业版的linux发行版... ]]></description>
			<content:encoded><![CDATA[<p>香港主机上线，请关注 Yculer 的官方博客：<a href="http://blog.yculer.com" target="_blnak">http://blog.yculer.com</a></p>
<p>更多细节不在这里赘述。我这里只是简单说明一下香港服务器上线过程中的“亮点”。<br />
1 首次采用Cloudlinux，一个商业版的linux发行版，这样我们实现了比以往更好的资源控制。以实际例子来说，某个用户的网站程序有问题，导致cpu资源的消耗很快上升到上限，如果放在以前，我们很快就会发现服务器负载上升到影响正常网站载入，不得不挂起该名用户的帐号，然而实际结果是负载保持在1，丝毫不影响其他用户的网站的访问。这种隔离技术令人耳目一新。<br />
2 继续采用LiteSpeed，一个商业版的webserver，在性能端和可用性上依然给了我很深的印象。<br />
3 采用了一台香港的vps，储存香港主机的数据备份。我们有其他的备份空间，但在美国。众所周知香港的国际带宽价格昂贵，为此选择了香港本地的空间，这样异地备份需要消耗的本地带宽不会影响用户使用国际带宽。<br />
<span id="more-741"></span><br />
HK主机上线后该做的事情，或者说我认为和决定去做的有：<br />
1 wiki计划。事实上文档建设理应是 Yculer 的强项，而 wiki 网站事实上在4月份就已经“秘密”上线。依然有很多包括图片在内的内容需要充实。<br />
2 xhtml 标准化和前台 UI 整合计划。在经过慎重的考虑后，我决定整合几个重要的前台：官方网站、会员中心、博客、wiki和status服务器状态。首先要做的是对 xhtml+css 规范化，使它符合 <span class='wp_keywordlink'><a href="http://w3.org/" rel="external nofollow">w3c</a></span> 的标准——我正在考虑是否在将来开源我们博客和status或者更多的 theme ,而如果开源的话，自然语言要写的优美些。。。即使最终不开源，这也是一定会做的事情，因为在这方面我个人有洁癖。<br />
3 老生常谈的 logo 设计。看过几个设计，然而包括我在内的成员都不是很满意，无法达成共识。我很希望有愿意试试的朋友，当然这个是有偿的。<br />
4 我正在考虑释出适合大流量网站的解决方案：varnish+nginx+apache,因为无论是lnmp也好，lnamp也好，都不能令人满意。唯一令人满意的Litespeed不是开源的。这会是一项长期工作。</p>
<p>此外，在香港服务器 Vega 上线以后的相当长一段时间内，Yculer 不会再上线新的主机。在这里可以透露的是，我们一直把 Yculer 看做一项半盈利的事业，对 WPG 和 cnFrag 等博客群体的赞助是长期性质的。事实上我们一直处于保本和微利的状态，把服务器的负载维持在业内很低的水平，我们希望吸引的是使用2年及以上，和我们共同成长的用户，在香港主机上线后，未来将有一段时间需要我们去消化成本。</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.frompku.com/2011/04/%e9%a6%99%e6%b8%af%e4%b8%bb%e6%9c%ba%e5%92%8c%e7%be%8e%e5%9b%bd%e4%b8%bb%e6%9c%ba%e4%b9%8b%e9%97%b4%e7%9a%84%e9%80%89%e6%8b%a9.html" title="香港主机和美国主机之间的选择">香港主机和美国主机之间的选择</a></li><li><a href="http://blog.frompku.com/2009/12/yculer%e4%b9%89%e5%8d%96%e4%b8%bb%e6%9c%ba%ef%bc%8c%e6%94%af%e6%8c%81wpg.html" title="Yculer义卖主机，支持WPG">Yculer义卖主机，支持WPG</a></li><li><a href="http://blog.frompku.com/2009/10/yculer%e6%ad%aa%e9%85%b7%e4%ba%ba%e6%98%af%e8%b0%81%ef%bc%9f.html" title="Yculer歪酷人是谁？">Yculer歪酷人是谁？</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.frompku.com/2011/05/hk%e4%b8%bb%e6%9c%ba%e4%b8%8a%e7%ba%bf%e5%90%8e%e8%af%a5%e5%81%9a%e7%9a%84%e4%ba%8b%e6%83%85.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>香港主机和美国主机之间的选择</title>
		<link>http://blog.frompku.com/2011/04/%e9%a6%99%e6%b8%af%e4%b8%bb%e6%9c%ba%e5%92%8c%e7%be%8e%e5%9b%bd%e4%b8%bb%e6%9c%ba%e4%b9%8b%e9%97%b4%e7%9a%84%e9%80%89%e6%8b%a9.html</link>
		<comments>http://blog.frompku.com/2011/04/%e9%a6%99%e6%b8%af%e4%b8%bb%e6%9c%ba%e5%92%8c%e7%be%8e%e5%9b%bd%e4%b8%bb%e6%9c%ba%e4%b9%8b%e9%97%b4%e7%9a%84%e9%80%89%e6%8b%a9.html#comments</comments>
		<pubDate>Mon, 18 Apr 2011 07:51:09 +0000</pubDate>
		<dc:creator>SorryDreams</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[yculer]]></category>
		<category><![CDATA[歪酷人]]></category>
		<category><![CDATA[美国主机]]></category>
		<category><![CDATA[香港主机]]></category>

		<guid isPermaLink="false">http://blog.frompku.com/?p=739</guid>
		<description><![CDATA[自上次写关于主机的文章已经有一段时间了，是我稍感意外的是最近仍然遇到一些因为我写过的文章而选择 Yculer 歪酷人的朋友。再次感谢你们的信任与厚爱。
现在看之前的文章，我认为之前... ]]></description>
			<content:encoded><![CDATA[<p>自上次写关于主机的文章已经有一段时间了，是我稍感意外的是最近仍然遇到一些因为我写过的文章而选择 Yculer 歪酷人的朋友。再次感谢你们的信任与厚爱。</p>
<p>现在看之前的文章，我认为之前自己对主机——主要是美国主机的种种认识基本上还是准确的。我对自己设定的高压线中的一条，是绝不能对同行有负面的评价——有时候即使面对一些人对 Yculer 的恶意评价和抄袭，我也能保持一贯的心平气和。如果不是因为空闲时间太少，我很愿意和朋友们有更多的合作。<br />
<span id="more-739"></span><br />
现在Yculer正在为WPG、Wpoak、cnFrag提供长期的主机托管服务。虽然已经不再是单纯的博客主机，但其实我们仍然在不断努力，寻求为更多喜欢写博客的朋友们提供一个稳定的写作环境。</p>
<p>说这么多可能略有跑题。过去我们一直是立足于美国主机，原因有很多，相比较国内的内容审查制度更宽松的言论，更低的带宽成本使我们有能力为大家提供性价比的主机托管方案，依靠成熟的商业软件保持服务器的稳定在线率等等。</p>
<p>然而现在有一些事情在迫使我考虑把下一步的重点从美国转到香港。主要是出于两点考虑:<br />
一是美国主机正在被恶意价格竞争所摧毁。<br />
二是中国到美国带宽本身正变得越来越拥挤，“抽风”的频率越来越频繁。</p>
<p>当然香港主机也并非完美，缺点正对应美国主机的优点：<br />
一是软硬件整体成本较高<br />
二是带宽成本昂贵，1Mbps的价格差不多需要800元人民币（每月），同样的价格在美国可以买到10倍以上的资源。</p>
<p>根据一个简单的成本测算，需要付出至少5倍以上的投入，才可能获得和美国主机相当的资源保障（主要是流量），而我们的已有客户，应该不会接受5倍的价格。所以一个合理的定价是美国主机的3倍——真的不需要太严谨的计算，就能够知道做香港主机的利润率其实比美国主机低。</p>
<p>Yculer 歪酷人已经迈入第三个年头，关于未来的走向其实我有很多考虑，但有一条原则是只做我们会做和喜欢做的事情。有数百位用户信赖我本人和Yculer，我知道其中有许多朋友需要香港主机:)</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.frompku.com/2011/05/hk%e4%b8%bb%e6%9c%ba%e4%b8%8a%e7%ba%bf%e5%90%8e%e8%af%a5%e5%81%9a%e7%9a%84%e4%ba%8b%e6%83%85.html" title="HK主机上线后该做的事情">HK主机上线后该做的事情</a></li><li><a href="http://blog.frompku.com/2009/12/yculer%e4%b9%89%e5%8d%96%e4%b8%bb%e6%9c%ba%ef%bc%8c%e6%94%af%e6%8c%81wpg.html" title="Yculer义卖主机，支持WPG">Yculer义卖主机，支持WPG</a></li><li><a href="http://blog.frompku.com/2009/10/yculer%e6%ad%aa%e9%85%b7%e4%ba%ba%e6%98%af%e8%b0%81%ef%bc%9f.html" title="Yculer歪酷人是谁？">Yculer歪酷人是谁？</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.frompku.com/2011/04/%e9%a6%99%e6%b8%af%e4%b8%bb%e6%9c%ba%e5%92%8c%e7%be%8e%e5%9b%bd%e4%b8%bb%e6%9c%ba%e4%b9%8b%e9%97%b4%e7%9a%84%e9%80%89%e6%8b%a9.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>每天开会的日子</title>
		<link>http://blog.frompku.com/2011/03/%e6%af%8f%e5%a4%a9%e5%bc%80%e4%bc%9a%e7%9a%84%e6%97%a5%e5%ad%90.html</link>
		<comments>http://blog.frompku.com/2011/03/%e6%af%8f%e5%a4%a9%e5%bc%80%e4%bc%9a%e7%9a%84%e6%97%a5%e5%ad%90.html#comments</comments>
		<pubDate>Fri, 18 Mar 2011 04:26:15 +0000</pubDate>
		<dc:creator>SorryDreams</dc:creator>
				<category><![CDATA[散记断想]]></category>
		<category><![CDATA[开会]]></category>

		<guid isPermaLink="false">http://blog.frompku.com/?p=737</guid>
		<description><![CDATA[记得曾经听到过一句很有意思的话：坚持开会时间不超过10分钟，因为开会是生产力的杀手。
因为目前工作的处境，我差不多每天都要向上级部门上报信息。问题是没有那么多事情可报，于是... ]]></description>
			<content:encoded><![CDATA[<p>记得曾经听到过一句很有意思的话：坚持开会时间不超过10分钟，因为开会是生产力的杀手。</p>
<p>因为目前工作的处境，我差不多每天都要向上级部门上报信息。问题是没有那么多事情可报，于是就“有事上报，事多压着报，没事编着报”。<br />
<span id="more-737"></span><br />
最好编的莫过于开会，于是昨天开了某某会议，传达某某精神，今天开了某某座谈，开展某某学习。言简意赅，就是我们过上每天开会的日子啦！</p>
<p>其实，大部分时间还是做实事的，只不过因为种种原因，“有苦说不出” 啊。</p>
<h3  class="related_post_title">随机日志</h3><ul class="related_post"><li><a href="http://blog.frompku.com/2010/06/%e5%a6%82%e4%bd%95%e6%8c%91%e9%80%89%e5%a5%bd%e7%9a%84%e4%b8%bb%e6%9c%ba%ef%bc%88%e4%ba%94%ef%bc%89%e8%bf%9c%e7%a6%bb%e6%8a%bd%e9%a3%8e.html" title="如何挑选好的主机（五）远离抽风">如何挑选好的主机（五）远离抽风</a></li><li><a href="http://blog.frompku.com/2008/08/%e7%89%b9%e9%9c%b2%e4%b9%8b%e6%ad%8c-%e5%9c%b0%e6%b5%b7%e6%88%98%e8%ae%b0.html" title="特露之歌-地海战记">特露之歌-地海战记</a></li><li><a href="http://blog.frompku.com/2006/01/pku%e7%9a%84%e9%ad%85%e5%8a%9b.html" title="PKU的魅力">PKU的魅力</a></li><li><a href="http://blog.frompku.com/2006/04/%e4%bb%8a%e5%b9%b4%e7%9a%84%e7%ac%ac%e5%87%a0%e5%9c%ba%e5%9c%9f%e5%91%a2.html" title="今年的第几场土呢">今年的第几场土呢</a></li><li><a href="http://blog.frompku.com/2006/05/%e6%b2%a1%e6%9c%89%e4%bb%80%e4%b9%88%e7%89%b9%e5%88%ab%e7%9a%84.html" title="没有什么特别的">没有什么特别的</a></li><li><a href="http://blog.frompku.com/2009/07/%e7%ac%ac%e4%ba%8c%e6%ac%a1%e6%90%ac%e5%ae%b6%e5%92%8c%e6%9c%80%e8%bf%91%e7%9a%84%e6%b5%81%e6%b0%b4%e8%b4%a6.html" title="第二次搬家和最近的流水账">第二次搬家和最近的流水账</a></li><li><a href="http://blog.frompku.com/2007/05/blog-network%ef%bc%9f.html" title="blog network？">blog network？</a></li><li><a href="http://blog.frompku.com/2009/10/%e8%a2%abddos%e5%92%8c%e5%96%84%e5%90%8e%e4%ba%8b%e9%a1%b9.html" title="被DDos和善后事项">被DDos和善后事项</a></li><li><a href="http://blog.frompku.com/2009/09/%e5%9c%a8%e7%bd%91%e9%a1%b5%e4%b8%ad%e6%8f%92%e5%85%a5flash%e7%9a%84%e6%a0%87%e5%87%86%e6%96%b9%e6%b3%95%ef%bc%88%e4%b8%80.html" title="在网页中插入flash的标准方法（一）">在网页中插入flash的标准方法（一）</a></li><li><a href="http://blog.frompku.com/2006/04/%e5%9d%a6%e7%8e%87%e5%9c%b0%e8%af%b4%ef%bc%8c%e6%88%91%e5%96%9c%e6%ac%a2%e6%98%a5%e5%a4%a9.html" title="坦率地说，我喜欢春天">坦率地说，我喜欢春天</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.frompku.com/2011/03/%e6%af%8f%e5%a4%a9%e5%bc%80%e4%bc%9a%e7%9a%84%e6%97%a5%e5%ad%90.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>我的音乐电台</title>
		<link>http://blog.frompku.com/2011/03/%e6%88%91%e7%9a%84%e9%9f%b3%e4%b9%90%e7%94%b5%e5%8f%b0.html</link>
		<comments>http://blog.frompku.com/2011/03/%e6%88%91%e7%9a%84%e9%9f%b3%e4%b9%90%e7%94%b5%e5%8f%b0.html#comments</comments>
		<pubDate>Wed, 16 Mar 2011 13:42:28 +0000</pubDate>
		<dc:creator>SorryDreams</dc:creator>
				<category><![CDATA[Song Today]]></category>
		<category><![CDATA[FM]]></category>
		<category><![CDATA[xiami]]></category>
		<category><![CDATA[虾米]]></category>
		<category><![CDATA[音乐电台]]></category>

		<guid isPermaLink="false">http://blog.frompku.com/?p=734</guid>
		<description><![CDATA[有这样一种人，遇到喜欢的歌就24小时轮转不休的播放，好像不生厌不罢休。
然而，喜欢的歌真的让人不由自主地一遍又一遍。
在虾米上做了一个精选，我的FM音乐电台，不断更新中：
http://www... ]]></description>
			<content:encoded><![CDATA[<p>有这样一种人，遇到喜欢的歌就24小时轮转不休的播放，好像不生厌不罢休。</p>
<p>然而，喜欢的歌真的让人不由自主地一遍又一遍。</p>
<p>在虾米上做了一个精选，我的FM音乐电台，不断更新中：</p>
<p><a href="http://www.xiami.com/song/showcollect/id/3971469" rel="external nofollow">http://www.xiami.com/song/showcollect/id/3971469</a></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.frompku.com/2009/07/%e6%8e%a8%e8%8d%90%e5%87%a0%e4%b8%aa%e5%9b%bd%e5%86%85%e9%9f%b3%e4%b9%90%e7%bd%91%e7%ab%99.html" title="推荐几个国内音乐网站">推荐几个国内音乐网站</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.frompku.com/2011/03/%e6%88%91%e7%9a%84%e9%9f%b3%e4%b9%90%e7%94%b5%e5%8f%b0.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>9级地震的真实梦境</title>
		<link>http://blog.frompku.com/2011/03/9%e7%ba%a7%e5%9c%b0%e9%9c%87%e7%9a%84%e7%9c%9f%e5%ae%9e%e6%a2%a6%e5%a2%83.html</link>
		<comments>http://blog.frompku.com/2011/03/9%e7%ba%a7%e5%9c%b0%e9%9c%87%e7%9a%84%e7%9c%9f%e5%ae%9e%e6%a2%a6%e5%a2%83.html#comments</comments>
		<pubDate>Wed, 16 Mar 2011 13:35:49 +0000</pubDate>
		<dc:creator>SorryDreams</dc:creator>
				<category><![CDATA[散记断想]]></category>
		<category><![CDATA[9级地震]]></category>

		<guid isPermaLink="false">http://blog.frompku.com/?p=732</guid>
		<description><![CDATA[最近的一周，日本的9级地震，好像科幻片一幕幕上映。
核泄漏的危机，似乎让事态从一件孤立的事故渐渐演变成慢性疾病。
我始终认为没有国际主义和人道主义的爱国不是真正的爱国。
一衣... ]]></description>
			<content:encoded><![CDATA[<p>最近的一周，日本的9级地震，好像科幻片一幕幕上映。</p>
<p>核泄漏的危机，似乎让事态从一件孤立的事故渐渐演变成慢性疾病。</p>
<p>我始终认为没有国际主义和人道主义的爱国不是真正的爱国。</p>
<p>一衣带水的邻邦，长期历史建立的友谊，战争的创伤和隔阂，这些都是切实存在的吧。</p>
<p>人性同样令人感到惊奇。连活着的同胞的苦痛都麻木不仁，却厚颜牢记死去同胞的仇恨。</p>
<p>即使不去刻意，人与人之间自然地也会耸起壁垒和高墙。因此就不要再层峦叠嶂地推高我们彼此之间的隔绝吧。</p>
<p>愿逝者安息。</p>
<h3  class="related_post_title">随机日志</h3><ul class="related_post"><li><a href="http://blog.frompku.com/2010/06/%e5%a6%82%e4%bd%95%e6%8c%91%e9%80%89%e5%a5%bd%e7%9a%84%e4%b8%bb%e6%9c%ba%ef%bc%88%e4%ba%94%ef%bc%89%e8%bf%9c%e7%a6%bb%e6%8a%bd%e9%a3%8e.html" title="如何挑选好的主机（五）远离抽风">如何挑选好的主机（五）远离抽风</a></li><li><a href="http://blog.frompku.com/2009/08/song-today-%e9%99%b6%e5%96%86-%e6%9a%97%e6%81%8badoration.html" title="Song Today 陶喆-暗恋Adoration ">Song Today 陶喆-暗恋Adoration </a></li><li><a href="http://blog.frompku.com/2008/01/2008%e5%b9%b4%e7%9a%84%e7%ac%ac%e4%b8%80%e5%a4%a9.html" title="2008年的第一天">2008年的第一天</a></li><li><a href="http://blog.frompku.com/2007/12/%e4%b8%8d%e4%b8%ba%e7%ba%aa%e5%bf%b5%e7%9a%84%e7%ba%aa%e5%bf%b5.html" title="不为纪念的纪念">不为纪念的纪念</a></li><li><a href="http://blog.frompku.com/2007/11/%e6%97%a0%e6%89%80%e4%ba%8b%e4%ba%8b%e4%b8%ad%e6%8e%a8%e8%8d%90%e6%b1%82%e8%81%8c%e4%b9%a6%e7%b1%8d.html" title="无所事事中推荐求职书籍">无所事事中推荐求职书籍</a></li><li><a href="http://blog.frompku.com/2007/04/%e5%9b%9e%e5%88%b0%e5%ae%b6%e4%b8%ad.html" title="回到家中">回到家中</a></li><li><a href="http://blog.frompku.com/2008/06/last-friends%ef%bc%8c%e6%b5%85%e9%87%8e%e5%a6%99%e5%ad%90%e4%b8%80%e5%ae%9a%e6%98%af%e4%b8%aa%e5%bd%bb%e5%ba%95%e7%9a%84%e5%a5%b3%e6%9d%83%e4%b8%bb%e4%b9%89%e8%80%85.html" title="last Friends，浅野妙子一定是个彻底的女权主义者">last Friends，浅野妙子一定是个彻底的女权主义者</a></li><li><a href="http://blog.frompku.com/2006/06/%e9%9d%99%e5%9d%90%e8%bf%87%e4%b9%85%e7%9a%84%e4%bc%a4%e5%ae%b3.html" title="静坐过久的伤害">静坐过久的伤害</a></li><li><a href="http://blog.frompku.com/2009/07/movie-the-week-%e9%95%bf%e9%80%94%e6%bc%ab%e6%ad%a5.html" title="Movie The Week 长途漫步">Movie The Week 长途漫步</a></li><li><a href="http://blog.frompku.com/2007/12/%e5%8d%81%e4%ba%94%e4%b8%aa%e5%bf%85%e9%a1%bb%e8%ae%a9%e7%94%b7%e6%9c%8b%e5%8f%8b%e7%9f%a5%e9%81%93%e7%9a%84%e4%ba%8b%e9%9a%be%e5%be%97%e6%88%91%e4%b9%9f%e8%bd%ac%e8%bd%bd%e4%b8%80%e5%9b%9e%ef%bc%89.html" title="十五个必须让男朋友知道的事(难得我也转载一回）">十五个必须让男朋友知道的事(难得我也转载一回）</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.frompku.com/2011/03/9%e7%ba%a7%e5%9c%b0%e9%9c%87%e7%9a%84%e7%9c%9f%e5%ae%9e%e6%a2%a6%e5%a2%83.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2010年的最后一篇Blog</title>
		<link>http://blog.frompku.com/2010/12/2010%e5%b9%b4%e7%9a%84%e6%9c%80%e5%90%8e%e4%b8%80%e7%af%87blog.html</link>
		<comments>http://blog.frompku.com/2010/12/2010%e5%b9%b4%e7%9a%84%e6%9c%80%e5%90%8e%e4%b8%80%e7%af%87blog.html#comments</comments>
		<pubDate>Fri, 31 Dec 2010 14:12:39 +0000</pubDate>
		<dc:creator>SorryDreams</dc:creator>
				<category><![CDATA[散记断想]]></category>

		<guid isPermaLink="false">http://blog.frompku.com/?p=728</guid>
		<description><![CDATA[今天是2010年的最后一天，也是本命年的最后一天。
下半年几乎没有写blog。在这个“微时代”里，仿佛时间的沙漏穿透了叹息之墙，慢慢的博客不再是一件流行品，变的琐碎冗长与不合时宜，... ]]></description>
			<content:encoded><![CDATA[<p>今天是2010年的最后一天，也是本命年的最后一天。</p>
<p>下半年几乎没有写blog。在这个“微时代”里，仿佛时间的沙漏穿透了叹息之墙，慢慢的博客不再是一件流行品，变的琐碎冗长与不合时宜，连同一起变老的我，都开始有一种过气的感觉。</p>
<p>从后天开始，被临时分配到虹桥一个月。定岗似乎近在眼前，又闻最新版本云云不到开年元宵都没谱。</p>
<p>时间真是奇妙的东西，定岗或许也只是长一点的临时罢了。</p>
<p>到新年的时候，又想到了普鲁斯特笔下的那段话。刚开始还满怀着对新年的希望的我，突然间在那街道，行人和风中闻到那熟悉的气息，感知到那种永恒的存在，今天，明天，除了日历上的差别，并没有真正的不同。</p>
<p>离只求简单，不求深刻的境界，大概，我还差了些许。因为工作的变化，突然一下子多了不少空闲的时间。一直计划着写而没有写完的小说，突然又有了继续坚持下去的动力。</p>
<p>照着你的构思，像说一些真实的事情，像回忆一些活在你身边的朋友那样去写好了，我这样鼓励自己。</p>
<p>2010年未完，2011年待续。</p>
<h3  class="related_post_title">随机日志</h3><ul class="related_post"><li><a href="http://blog.frompku.com/2009/08/chrome%e4%bb%a3%e6%9b%bffirefox.html" title="Chrome代替Firefox">Chrome代替Firefox</a></li><li><a href="http://blog.frompku.com/2008/06/%e5%b2%81%e6%9c%88%e6%97%a0%e7%97%95%ef%bc%8ctime-waits-for-no-one.html" title="岁月无痕，Time waits for no one">岁月无痕，Time waits for no one</a></li><li><a href="http://blog.frompku.com/2007/07/%e5%b0%8f%e5%b0%8f%e7%9a%84%e4%b8%96%e7%95%8c.html" title="小小的世界">小小的世界</a></li><li><a href="http://blog.frompku.com/2010/05/%e4%b8%9c%e6%9e%81%e5%b2%9b%e5%bd%92%e6%9d%a5.html" title="东极岛归来">东极岛归来</a></li><li><a href="http://blog.frompku.com/2009/02/%e5%8e%bb%e6%b5%b7%e8%be%b914.html" title="去海边14">去海边14</a></li><li><a href="http://blog.frompku.com/2007/10/%e4%bf%a1%e6%89%8b%e5%86%99%e6%9d%a5%e7%9a%84%e4%b8%9c%e8%a5%bf%e6%80%bb%e6%98%af%e6%9c%80%e5%90%8e%e5%8a%a0%e4%b8%aa%e9%a2%98%e7%9b%ae.html" title="TIME waits for no one">TIME waits for no one</a></li><li><a href="http://blog.frompku.com/2009/10/yculer%e6%ad%aa%e9%85%b7%e4%ba%ba%e6%98%af%e8%b0%81%ef%bc%9f.html" title="Yculer歪酷人是谁？">Yculer歪酷人是谁？</a></li><li><a href="http://blog.frompku.com/2006/04/%e8%bf%87%e5%b1%b1%e8%bd%a6-%e6%91%a9%e5%a4%a9%e8%bd%ae.html" title="过山车 摩天轮">过山车 摩天轮</a></li><li><a href="http://blog.frompku.com/2007/12/%e5%8d%81%e4%ba%94%e4%b8%aa%e5%bf%85%e9%a1%bb%e8%ae%a9%e7%94%b7%e6%9c%8b%e5%8f%8b%e7%9f%a5%e9%81%93%e7%9a%84%e4%ba%8b%e9%9a%be%e5%be%97%e6%88%91%e4%b9%9f%e8%bd%ac%e8%bd%bd%e4%b8%80%e5%9b%9e%ef%bc%89.html" title="十五个必须让男朋友知道的事(难得我也转载一回）">十五个必须让男朋友知道的事(难得我也转载一回）</a></li><li><a href="http://blog.frompku.com/2006/05/%e7%94%9f%e6%97%a5%e7%9a%84%e8%bf%99%e5%a4%a9.html" title="生日的这天">生日的这天</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.frompku.com/2010/12/2010%e5%b9%b4%e7%9a%84%e6%9c%80%e5%90%8e%e4%b8%80%e7%af%87blog.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>phpmyadmin惹得祸</title>
		<link>http://blog.frompku.com/2010/09/phpmyadmin%e6%83%b9%e5%be%97%e7%a5%b8.html</link>
		<comments>http://blog.frompku.com/2010/09/phpmyadmin%e6%83%b9%e5%be%97%e7%a5%b8.html#comments</comments>
		<pubDate>Tue, 21 Sep 2010 13:25:13 +0000</pubDate>
		<dc:creator>SorryDreams</dc:creator>
				<category><![CDATA[散记断想]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[搬家]]></category>

		<guid isPermaLink="false">http://blog.frompku.com/?p=724</guid>
		<description><![CDATA[blog停了差不多一周时间——不是一周没更新，是一周没访问。
这个blog本来放在国内，上个星期到期了。
要换到我在国外一台服务器上。数据很早就备份出来了。一直懒得弄。什么beian，什么SE... ]]></description>
			<content:encoded><![CDATA[<p>blog停了差不多一周时间——不是一周没更新，是一周没访问。</p>
<p>这个blog本来放在国内，上个星期到期了。</p>
<p>要换到我在国外一台服务器上。数据很早就备份出来了。一直懒得弄。什么beian，什么<span class='wp_keywordlink_affiliate'><a href="/tag/seo/">SEO</a></span>统统滚蛋。爷有空有兴趣的时候再整吧。<br />
<span id="more-724"></span><br />
好家伙今天终于忙里偷闲搬家，结果最后一步导入数据库，发现居然是不完整的。</p>
<p>都是phpmyadmin惹的祸。杯具。不知道我的那台上网本硬盘里的数据库是不是最新完整的。</p>
<p>无奈，拿6月份的一个备份来恢复，先凑合凑合（也可能一直这样凑合）了。</p>
<p>写的文章倒没什么。抱歉了几位朋友，你们的留言可能没了。</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://blog.frompku.com/2009/08/%e5%9c%a8%e6%81%af%e5%a3%a4%e4%b8%bb%e6%9c%ba%e4%b8%8a%e5%ae%89%e8%a3%85wpmu.html" title="在息壤主机上安装WPMU">在息壤主机上安装WPMU</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.frompku.com/2010/09/phpmyadmin%e6%83%b9%e5%be%97%e7%a5%b8.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Apache+MPM worker+fastcgi+mysql服务器的配置实例</title>
		<link>http://blog.frompku.com/2010/06/apachempm-workerfastcgimysql%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e9%85%8d%e7%bd%ae%e5%ae%9e%e4%be%8b.html</link>
		<comments>http://blog.frompku.com/2010/06/apachempm-workerfastcgimysql%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e9%85%8d%e7%bd%ae%e5%ae%9e%e4%be%8b.html#comments</comments>
		<pubDate>Fri, 25 Jun 2010 06:16:54 +0000</pubDate>
		<dc:creator>SorryDreams</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[mpm worker]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.frompku.com/?p=719</guid>
		<description><![CDATA[这个配置实例是我自己摸索出来的。
服务器的生产环境是 apache+mpm worker+fastcgi。利用cpanel主机的/scripts/easyapache脚本可以很方便地安装必要的组件。但是默认安装好的配置并不能很好的运用于生... ]]></description>
			<content:encoded><![CDATA[<p>这个配置实例是我自己摸索出来的。</p>
<p>服务器的生产环境是 apache+mpm worker+fastcgi。利用cpanel主机的/scripts/easyapache脚本可以很方便地安装必要的组件。但是默认安装好的配置并不能很好的运用于生产环境，根据网站的负载不同，你可能需要手动修改一些关键的配置文件，这也正是我做的。<br />
<span id="more-719"></span><br />
MPM模块的引进是apache2.0版本开始最重大的改进之一，MPM常见的模式是prefork和worker，很奇怪，在cpanel服务器的web控制端，默认配置prefork模式，因此，如果你要使用MPM worker，需要手动修改http.conf,一个典型的prefork配置是这样的：</p>
<div style="font-family: &quot;[object HTMLOptionElement]&quot;,&quot;Consolas&quot;,&quot;Lucida Console&quot;,&quot;Courier New&quot;; color: rgb(0, 0, 0);" class="source"> <span style="color: rgb(0, 0, 128); font-weight: bold;">&lt;IfModule</span> <span style="color: rgb(0, 0, 255);">prefork.c</span><span style="color: rgb(0, 0, 128); font-weight: bold;">&gt;</span></p>
<p> <span style="color: rgb(0, 0, 0);">StartServers</span> <span style="color: rgb(0, 0, 255);">5</span></p>
<p> <span style="color: rgb(0, 0, 0);">MinSpareServers</span> <span style="color: rgb(0, 0, 255);">5</span></p>
<p> <span style="color: rgb(0, 0, 0);">MaxSpareServers</span> <span style="color: rgb(0, 0, 255);">10</span></p>
<p> <span style="color: rgb(0, 0, 0);">MaxClients</span> <span style="color: rgb(0, 0, 255);">150</span></p>
<p> <span style="color: rgb(0, 0, 0);">MaxRequestsPerChild</span> <span style="color: rgb(0, 0, 255);">0</span></p>
<p> <span style="color: rgb(0, 0, 128); font-weight: bold;">&lt;/IfModule&gt;</span></div>
<p>prefork模式可以提高apache的并发能力，对于大内存的服务器来说是apache和cpanel官方推荐的方法，实际我用了worker模式，它对内存的使用更加经济，删掉类似上面的prefork模式，以worker模式取而代之：</p>
<div style="font-family: &quot;[object HTMLOptionElement]&quot;,&quot;Consolas&quot;,&quot;Lucida Console&quot;,&quot;Courier New&quot;; color: rgb(0, 0, 0);" class="source"> <span style="color: rgb(0, 0, 128); font-weight: bold;">&lt;IfModule</span> <span style="color: rgb(0, 0, 255);">mpm_worker_module</span><span style="color: rgb(0, 0, 128); font-weight: bold;">&gt;</span><br /> <span style="color: rgb(0, 0, 0);">ServerLimit</span> <span style="color: rgb(0, 0, 255);">16</span><br /> <span style="color: rgb(0, 0, 0);">ThreadLimit</span> <span style="color: rgb(0, 0, 255);">64</span><br /> <span style="color: rgb(0, 0, 0);">StartServers</span> <span style="color: rgb(0, 0, 255);">2</span><br /> <span style="color: rgb(0, 0, 0);">MaxClients</span> <span style="color: rgb(0, 0, 255);">1024</span><br /> <span style="color: rgb(0, 0, 0);">MinSpareThreads</span> <span style="color: rgb(0, 0, 255);">64</span><br /> <span style="color: rgb(0, 0, 0);">MaxSpareThreads</span> <span style="color: rgb(0, 0, 255);">128</span><br /> <span style="color: rgb(0, 0, 0);">ThreadsPerChild</span> <span style="color: rgb(0, 0, 255);">64</span><br /> <span style="color: rgb(0, 0, 0);">MaxRequestsPerChild</span> <span style="color: rgb(0, 0, 255);">1300</span><br /> <span style="color: rgb(0, 0, 0);">ThreadStackSize</span> <span style="color: rgb(0, 0, 255);">327680</span><br /> <span style="color: rgb(0, 0, 0);">TimeOut</span> <span style="color: rgb(0, 0, 255);">60</span><br /> <span style="color: rgb(0, 0, 128); font-weight: bold;">&lt;/IfModule&gt;</span></div>
<p>下一步是对fastcgi的配置。fastcgi是php的一种运行模式，它最大的优点就是大大提高了php脚本的执行效率，但它的配置也是最复杂的，事实上，你应该根据网站的实际流量和服务器的现有资源，控制fastcgi的进程数，尤其要注意及时杀死空闲僵死的fastcgi进程，以收回内存。cpanel服务器的配置文件是/etc/httpd/conf/php.conf,我的配置如下：</p>
<div style="font-family: &quot;[object HTMLOptionElement]&quot;,&quot;Consolas&quot;,&quot;Lucida Console&quot;,&quot;Courier New&quot;; color: rgb(0, 0, 0);" class="source"> <span style="color: rgb(0, 136, 0); font-style: italic;"># Fastcgi configuration for PHP5</span><br /> <span style="color: rgb(0, 0, 0);">LoadModule</span><span style="color: rgb(0, 0, 0);"> fcgid_module modules/mod_fcgid.so</span><br /> <span style="color: rgb(0, 0, 0);">MaxRequestsPerProcess</span> <span style="color: rgb(0, 0, 255);">30</span><br /> <span style="color: rgb(0, 0, 0);">ProcessLifeTime</span> <span style="color: rgb(0, 0, 255);">1200</span><br /> <span style="color: rgb(0, 0, 0);">IdleTimeout</span> <span style="color: rgb(0, 0, 255);">300</span><br /> <span style="color: rgb(0, 0, 0);">DefaultMinClassProcessCount</span> <span style="color: rgb(0, 0, 255);">2</span><br /> <span style="color: rgb(0, 0, 0);">DefaultMaxClassProcessCount</span> <span style="color: rgb(0, 0, 255);">6</span><br /> <span style="color: rgb(0, 0, 0);">IPCConnectTimeout</span> <span style="color: rgb(0, 0, 255);">30</span><br /> <span style="color: rgb(0, 0, 0);">IPCCommTimeout</span> <span style="color: rgb(0, 0, 255);">300</span></div>
<p>因为服务器的生产环境是用于虚拟主机托管，因此会产出许多（超过100不稀奇）个php（运行于fastcgi模式）的进程，以上的配置的优点是能够较好的回收内存，对有较多数量网站，而大部分的流量并不高的生产环境是一种效率和稳定性之间的折中。即使做了上述的配置，实际内存的使用也往往接近3GB。</p>
<p>因此，你可以另外通过cronjob的方法，定时杀死php进程，回收内存，比如每小时杀死一次：</p>
<div style="font-family: &quot;[object HTMLOptionElement]&quot;,&quot;Consolas&quot;,&quot;Lucida Console&quot;,&quot;Courier New&quot;; color: rgb(0, 0, 0);" class="source"> <span style="color: rgb(166, 23, 23); background-color: rgb(227, 210, 210);">0</span> <span style="color: rgb(166, 23, 23); background-color: rgb(227, 210, 210);">*</span> <span style="color: rgb(166, 23, 23); background-color: rgb(227, 210, 210);">*</span> <span style="color: rgb(166, 23, 23); background-color: rgb(227, 210, 210);">*</span> <span style="color: rgb(166, 23, 23); background-color: rgb(227, 210, 210);">*</span> ps<span style="color: rgb(0, 0, 0);"> aux | grep php | egrep -v grep | awk &#39;{print $2}&#39; | xargs kill -9</span></div>
<p>最后，是mysql的配置，数据库的配置可以是一件非常复杂的事情，不了解的人请不要照抄我的配置：</p>
<div style="font-family: &quot;[object HTMLOptionElement]&quot;,&quot;Consolas&quot;,&quot;Lucida Console&quot;,&quot;Courier New&quot;; color: rgb(0, 0, 0);" class="source"> <span style="color: rgb(0, 0, 0);">[</span><span style="color: rgb(0, 0, 0);">mysqld</span><span style="color: rgb(0, 0, 0);">]</span><br /> <span style="color: rgb(0, 0, 0);">skip-networking</span><br /> <span style="color: rgb(0, 0, 0);">log-slow-queries</span><br /> <span style="color: rgb(0, 0, 0);">safe-show-database</span><br /> <span style="color: rgb(0, 0, 0);">local</span><span style="color: rgb(0, 0, 0);">-infile </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> 0</span><br /> <span style="color: rgb(0, 0, 0);">skip-locking</span><br /> <span style="color: rgb(0, 0, 0);">skip-name-resolve</span></p>
<p> <span style="color: rgb(0, 0, 0);">set</span><span style="color: rgb(0, 0, 0);">-variable </span><span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">key_buffer_size</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">256M</span><br /> <span style="color: rgb(0, 0, 0);">set</span><span style="color: rgb(0, 0, 0);">-variable </span><span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">thread_concurrency</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">16</span><br /> <span style="color: rgb(0, 0, 0);">set</span><span style="color: rgb(0, 0, 0);">-variable </span><span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">max_connections</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">200</span><br /> <span style="color: rgb(0, 0, 0);">set</span><span style="color: rgb(0, 0, 0);">-variable </span><span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">table_cache</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">256</span><br /> <span style="color: rgb(0, 0, 0);">set</span><span style="color: rgb(0, 0, 0);">-variable </span><span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">max_delayed_threads</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">20</span><br /> <span style="color: rgb(0, 0, 0);">set</span><span style="color: rgb(0, 0, 0);">-variable </span><span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">max_tmp_tables</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">128</span><br /> <span style="color: rgb(0, 0, 0);">set</span><span style="color: rgb(0, 0, 0);">-variable </span><span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">query_cache_type</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">1</span><br /> <span style="color: rgb(0, 0, 0);">set</span><span style="color: rgb(0, 0, 0);">-variable </span><span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">query_cache_size</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">16M</span><br /> <span style="color: rgb(0, 0, 0);">set</span><span style="color: rgb(0, 0, 0);">-variable </span><span style="color: rgb(0, 0, 0);">=</span> <span style="color: rgb(0, 0, 0);">thread_cache_size</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">16</span></div>
<p>本文欢迎转载。分享知识光荣，浪费智力可耻。</p>
<h3  class="related_post_title">随机日志</h3><ul class="related_post"><li><a href="http://blog.frompku.com/2009/07/song-today-forbidden-colours.html" title="Song Today Forbidden Colours">Song Today Forbidden Colours</a></li><li><a href="http://blog.frompku.com/2006/08/%e4%b8%80%e8%b7%af%e5%90%91%e5%8c%97.html" title="一路向北">一路向北</a></li><li><a href="http://blog.frompku.com/2009/10/%e5%9c%a8%e7%bd%91%e9%a1%b5%e4%b8%ad%e6%8f%92%e5%85%a5-flash-%e7%9a%84%e6%a0%87%e5%87%86%e6%96%b9%e6%b3%95%ef%bc%88%e4%ba%8c%ef%bc%89.html" title="在网页中插入 FLASH 的标准方法（二）">在网页中插入 FLASH 的标准方法（二）</a></li><li><a href="http://blog.frompku.com/2007/11/%e6%97%a0%e6%89%80%e4%ba%8b%e4%ba%8b%e4%b8%ad%e6%8e%a8%e8%8d%90%e6%b1%82%e8%81%8c%e4%b9%a6%e7%b1%8d.html" title="无所事事中推荐求职书籍">无所事事中推荐求职书籍</a></li><li><a href="http://blog.frompku.com/2009/02/%e5%8e%bb%e6%b5%b7%e8%be%b914.html" title="去海边14">去海边14</a></li><li><a href="http://blog.frompku.com/2006/04/%e6%88%91%e4%b9%9f%e5%be%88%e6%83%b3%e5%8e%bb%e7%90%86%e4%ba%8c%ef%bc%8c%e5%8f%af%e6%98%af%e9%82%a3%e6%a0%b7%e4%bc%9a%e6%84%9f%e5%88%b0%e6%ad%89%e7%96%9a%e7%9a%84%e7%bd%a2.html" title="我也很想去理二，可是那样会感到歉疚的罢">我也很想去理二，可是那样会感到歉疚的罢</a></li><li><a href="http://blog.frompku.com/2009/07/song-today-ich-verlasse-heut-dein-herz.html" title="song-today-ich-verlasse-heut-dein-herz">song-today-ich-verlasse-heut-dein-herz</a></li><li><a href="http://blog.frompku.com/2006/04/oh-captain-my-captain.html" title="oh captain my captain">oh captain my captain</a></li><li><a href="http://blog.frompku.com/2007/10/%e7%bd%ae%e8%ba%ab%e4%ba%8b%e5%a4%96%ef%bc%9a%e7%9c%8b%e5%b0%bd%e7%b9%81%e5%8d%8e%e4%b9%8b%e5%90%8e.html" title="置身事外：看尽繁华之后">置身事外：看尽繁华之后</a></li><li><a href="http://blog.frompku.com/2006/04/photo.html" title="photo">photo</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.frompku.com/2010/06/apachempm-workerfastcgimysql%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e9%85%8d%e7%bd%ae%e5%ae%9e%e4%be%8b.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

