<?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>Life - WeiG &#187; configuration</title>
	<atom:link href="http://www.weigblog.com/tag/configuration/feed" rel="self" type="application/rss+xml" />
	<link>http://www.weigblog.com</link>
	<description>Yet another Life</description>
	<lastBuildDate>Thu, 05 Jan 2012 03:13:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Linode优化LAMP配置</title>
		<link>http://www.weigblog.com/2009/09/01/linode-optimize-lamp-config.html</link>
		<comments>http://www.weigblog.com/2009/09/01/linode-optimize-lamp-config.html#comments</comments>
		<pubDate>Tue, 01 Sep 2009 14:31:48 +0000</pubDate>
		<dc:creator>Wei</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linode]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://www.weigblog.com/?p=478</guid>
		<description><![CDATA[我的网站在经过2周左右的测试后，正式决定搬家到Linode。受经济和访问量等因素的综合考虑，我选择了最便宜的VPS方案（Linode 360：360MB内存，16GB存储空间，200GB月流量）。 操作系统上，我选择了Debian 5.0 (Lenny) 64bit。原因是Debian和我常用的Debian/Ubuntu系统最为贴近，安装、配置、管理都比较得心应手。至于64bit和32bit，简单一句话就是，64bit应用会相对更快一些，但也占用了更多的内存（例如一个int在32bit系统中占用4bytes，而在64bit系统中则占用8bytes）。 与很多采用Linode 360方案的人不太一样，我并没有使用传说更加高效的NgineX，而是使用了比较传统的LAMP结构。这样的代价是对于内存的消耗更加苛刻，而优点则是更加传统、经典、久经考验的Apache方案。 正是基于这些原因，我经过大约2周时间的调试，总结出针对我的个人网站来说比较合理的配置方案。 首先是Apache的配置（/etc/apache2/apache2.conf）： 接下来是PHP的配置（/etc/php5/apache2/php.ini）： 最后是MySQL的配置（/etc/mysql/my.conf）： 经过上述配置，在我的网站上，剩余物理内存空间基本能达到100MB左右，即使是峰值流量，也基本不会出现OOM了。]]></description>
			<content:encoded><![CDATA[<p>我的网站在经过2周左右的测试后，正式决定搬家到<a href="http://www.linode.com/?r=d399a85050ef9caca9080683c2b2249dd45454f6">Linode</a>。受经济和访问量等因素的综合考虑，我选择了最便宜的VPS方案（Linode 360：360MB内存，16GB存储空间，200GB月流量）。</p>
<p>操作系统上，我选择了Debian 5.0 (Lenny) 64bit。原因是Debian和我常用的Debian/Ubuntu系统最为贴近，安装、配置、管理都比较得心应手。至于64bit和32bit，简单一句话就是，64bit应用会相对更快一些，但也占用了更多的内存（例如一个int在32bit系统中占用4bytes，而在64bit系统中则占用8bytes）。</p>
<p>与很多采用Linode 360方案的人不太一样，我并没有使用传说更加高效的NgineX，而是使用了比较传统的<abbr title="Linux+Apache+MySQL+PHP">LAMP</abbr>结构。这样的代价是对于内存的消耗更加苛刻，而优点则是更加传统、经典、久经考验的Apache方案。</p>
<p>正是基于这些原因，我经过大约2周时间的调试，总结出针对我的个人网站来说比较合理的配置方案。</p>
<p>首先是Apache的配置（/etc/apache2/apache2.conf）：</p>
<pre class="brush: plain; title: ; notranslate">
KeepAlive                On
MaxkeepAliveRequest      20
MaxKeepAliveTimeOut      25

&lt;IfModule mpm_prefork_module&gt;
    ServerLimit          30
    StartServers          3
    MinSpareServers       3
    MaxSpareServers       7
    MaxClients           20
    MaxRequestsPerChild 500
&lt;/IfModule&gt;
</pre>
<p>接下来是PHP的配置（/etc/php5/apache2/php.ini）：</p>
<pre class="brush: plain; title: ; notranslate">
max_execution_time = 180
max_input_time = 60
memory_limit = 64M
error_reporting  = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
register_globals = Off
</pre>
<p>最后是MySQL的配置（/etc/mysql/my.conf）：</p>
<pre class="brush: plain; title: ; notranslate">
key_buffer              = 16K
max_allowed_packet      = 3M
thread_stack            = 64K
thread_cache_size       = 8
table_cache             = 3
query_cache_limit       = 1M
query_cache_size        = 16M
#skip-innodb
</pre>
<p>经过上述配置，在我的网站上，剩余物理内存空间基本能达到100MB左右，即使是峰值流量，也基本不会出现OOM了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weigblog.com/2009/09/01/linode-optimize-lamp-config.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>中国移动手机用户配置</title>
		<link>http://www.weigblog.com/2008/03/09/cmcc-cellphone-configuration.html</link>
		<comments>http://www.weigblog.com/2008/03/09/cmcc-cellphone-configuration.html#comments</comments>
		<pubDate>Sun, 09 Mar 2008 13:18:31 +0000</pubDate>
		<dc:creator>Wei</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[cellphone]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[gprs]]></category>
		<category><![CDATA[wap]]></category>

		<guid isPermaLink="false">http://www.weigblog.com/2008/03/09/cmcc-cellphone-configuration.html</guid>
		<description><![CDATA[在这里保留一下中国移动手机的一些配置信息。先说好是给我自己保留用的。因为如果你用行货手机，这些通常是不需要配置的。而水货的话…… WAP连接： 接入点：cmwap 代理服务器：010.000.000.172:80 WAP连接可用于彩信、一般网页浏览等。 GPRS连接： 接入点：cmnet 代理服务器：（无） GPRS连接可用于大流量数据访问，包括电子邮件（在我的手机上，Push mail只能用GPRS连接）。 彩信设置： 彩信服务中心地址：http://mmsc.monternet.com/]]></description>
			<content:encoded><![CDATA[<p>在这里保留一下中国移动手机的一些配置信息。先说好是给我自己保留用的。因为如果你用行货手机，这些通常是不需要配置的。而水货的话……</p>
<p><strong>WAP连接：</strong></p>
<p>接入点：cmwap<br />
代理服务器：010.000.000.172:80</p>
<p>WAP连接可用于彩信、一般网页浏览等。</p>
<p><strong>GPRS连接：</strong></p>
<p>接入点：cmnet<br />
代理服务器：（无）</p>
<p>GPRS连接可用于大流量数据访问，包括电子邮件（在我的手机上，Push mail只能用GPRS连接）。</p>
<p><strong>彩信设置：</strong></p>
<p>彩信服务中心地址：http://mmsc.monternet.com/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weigblog.com/2008/03/09/cmcc-cellphone-configuration.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

