<?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>维翔博客</title>
	<atom:link href="http://kwx.cc/feed" rel="self" type="application/rss+xml" />
	<link>http://kwx.cc</link>
	<description>记录平凡小事，展望IT世界。</description>
	<lastBuildDate>Wed, 02 May 2012 08:02:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>【转载】关于apache的MPM模块详解</title>
		<link>http://kwx.cc/post/2109</link>
		<comments>http://kwx.cc/post/2109#comments</comments>
		<pubDate>Wed, 02 May 2012 07:46:46 +0000</pubDate>
		<dc:creator>kwx</dc:creator>
				<category><![CDATA[资源分享]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[MPM]]></category>

		<guid isPermaLink="false">http://kwx.cc/?p=2109</guid>
		<description><![CDATA[最近有位朋友在一台只有512内存的vps上安装directadmin之后经常内存耗尽。经过查看之后发现apache成了罪魁祸首急速消耗内存SWAP剩余空间都是0。最终导致内核开始大下杀手，把MySQL都杀了。通过下文调整了apache的MPM参数得到解决。 apachectl -l 可以查看使用了什么MPM模块 转自：http://www.cnphp.info/apache-prefork-module-command-parse.html 我的VPS自从上个月配置完后一直没有再优化配置了，由于之前担心VPS的内存不够用，所以在配置服务器参数时，更多考虑如何节省内存，结果内存是省下来了，运行效率却一直不高；基于此，决定开始研究服务器参数优化。 开篇：apache prefork 模块指令 &#160; 什么是MPM? 既然是研究prefork模块，有必要提一提apache的多路处理模块(MPM)的基础知识。Apache2.0拥有多个模式的多路处理模块 (MPM)以处理网络端口绑定、接受请求并指派子进程来处理这些请求。MPM延续apache的设计思想，以一个模块的形式存在与apache中，所不同 的是：任何时候，必须有且仅有一个MPM被载入到服务器中。 有哪些MPM模块可供选择? MPM有多个，我们最常用的有：prefork、worker、mpm_winnt。前面两个用于类unix系统，后者则是专门为windows系统设计的，其他的如BeOS、event、mpm_netware、mpmt_os2恕笔者所知有限，不再详述。 如何编译MPM? 为了指定具体使用哪一个MPM模块，我们必须在编译的时候设定选项 –with-mpm=Name，name为prefork之类的模块名；可以在编译完成后使用 httpd -l 查看具体那个MPM模块已安装。 prefork简介 Apache MPM prefork 实现了一个非线程型的、预派生的web服务器，它的工作方式类似于Apache 1.3。它适合于没有线程安全库，需要避免线程兼容性问题的系统。（不要看到这里就认为prefork已经过时了^_^）prefork优点在于它会独立 处理每个请求的进程，这样如果其中一个请求出现问题就不会影响到其他请求。同时可以应用于不具备线程安全的第三方模块(比如php3/4/5)，且在不支 持线程调试的平台上易于调试，而且还具有比worker MPM更高的稳定性。 prefork的工作方式 prefork MPM使用多个子进程，但每个子进程并不包含多线程。并且每个进程在某一时刻也只处理一个请求。但在许多系统上它的速度和workerMPM一样快，只是内存的消耗要大一些。 prefork拥有一个单独的控制进程(父进程)负责产生子进程，这些子进程用于监听请求并作出应答。Apache随后会建立一些备用的(spare)或者是空闲的子进程用于迎接即将到来的请求。这样客户端就不需要在得到服务前等候子进程的产生（apache）。 prefork的可用指令有哪些？ StartServers, MinSpareServers, MaxSpareServers, MaxClients指令用于调节父进程如何产生子进程。MaxRequestsPerChild指令控制服务器杀死旧进程产生新进程的频率。 ServerLimit 指令则用来控制服务器允许配置的进程数上限。 上面列出的都是常用的指令，也是最重要的指令。笔者会在后面意义介绍，并给出配置实例。其他可使用的指令： AcceptMutex 用于串行化多个子进程在(多个)网络套接字(socket)上接受请求的方法 CoreDumpDirectory Apache使用的内核转储目录 EnableExceptionHook 在子进程崩溃以后启用一个钩子来运行异常处理程序 GracefulShutdownTimeout 指定优雅停止服务器的超时秒数 Group 对请求提供服务的Apache子进程运行时的用户组 Listen 服务器监听的IP地址和端口 [...]]]></description>
		<wfw:commentRss>http://kwx.cc/post/2109/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>新站。。</title>
		<link>http://kwx.cc/post/2107</link>
		<comments>http://kwx.cc/post/2107#comments</comments>
		<pubDate>Wed, 25 Apr 2012 09:39:50 +0000</pubDate>
		<dc:creator>kwx</dc:creator>
				<category><![CDATA[杂谈语录]]></category>

		<guid isPermaLink="false">http://kwx.cc/?p=2107</guid>
		<description><![CDATA[以前貌似整天没事做，每天都会到博客里逛一逛，查一下有没有最新的评论。 最近主要忙活自己的两个新网站 LinuxVPS学习者：http://www.kwx.gd WindowsVPS学习者：http://www.kwx.ch 这两个站主要写一些网站服务器相关的内容，Linux系列和Windows Server 系列都是不错的网络服务器操作系统，每个系统各有所长吧，不过以廉价、高速来讲，Linux还是不错的选择。 至于Windows，操作比较简单明了（图形化），不过占的资源多，如果不是要跑ASP之类的程序，选择Linux相对好一些。]]></description>
		<wfw:commentRss>http://kwx.cc/post/2107/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>五折虚拟主机</title>
		<link>http://kwx.cc/post/2103</link>
		<comments>http://kwx.cc/post/2103#comments</comments>
		<pubDate>Sat, 07 Apr 2012 12:02:35 +0000</pubDate>
		<dc:creator>kwx</dc:creator>
				<category><![CDATA[资源分享]]></category>
		<category><![CDATA[虚拟主机]]></category>

		<guid isPermaLink="false">http://kwx.cc/?p=2103</guid>
		<description><![CDATA[最近为“维翔数据”搞了一个团主机五折促销活动，优惠码有效期到4月17日，优惠码：tuan5 优惠以后的价格： 团2G：空间2048MB/50G月流量/可建无限子帐户/20个站点/50个子站/无限MYSQL、FTP数，仅需7元/月。 团3G：空间3072MB/80G月流量/可建无限子帐户/30个站点/60个子站/无限MYSQL、FTP数，仅需9.5元/月。 团4G：空间4096MB/100G月流量/可建无限子帐户/50个站点/100个子站/无限MYSQL、FTP数，仅需12元/月。 团5G：空间5120MB/120G月流量/可建无限子帐户/70个站点/140个子站/无限MYSQL、FTP数，仅需14.5元/月。 团主机地址：http://www.weixianghost.com/tuan.html]]></description>
		<wfw:commentRss>http://kwx.cc/post/2103/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Autodesk 3Ds Max 2012 中文版（含破解）</title>
		<link>http://kwx.cc/post/2087</link>
		<comments>http://kwx.cc/post/2087#comments</comments>
		<pubDate>Wed, 21 Mar 2012 13:27:40 +0000</pubDate>
		<dc:creator>kwx</dc:creator>
				<category><![CDATA[资源分享]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[3d max]]></category>
		<category><![CDATA[3ds]]></category>

		<guid isPermaLink="false">http://kwx.cc/?p=2087</guid>
		<description><![CDATA[最近学到Autodesk 3Ds Max 图像制作，所以这款软件必不可少。介绍之类的百度百科更详细，这边就懒得转载，需要看介绍的请百度。 这里提供的是Autodesk 3Ds Max 2012 中文版，带破解补丁。 Autodesk 3Ds Max 2012 中文版含32位和六十四位版本，自动适应你的系统，演示图： 我的是64位滴。 下载地址： 中文版：迅雷下载 破解补丁：3dmax2012-Cr-snr 安装方法： 1.运行下载的安装包，对安装文件时行解压后，会看到这些，找到SETUP.EXE文件。运行它 2.检查系统配置后，这时就会进入安装界面。点击”Install”（安装）按钮进行安装。 3.安装许可协议勾选我接受。点“确定”按钮 4.产品信息界面。输入序列号: 666 69696969    与产品ID:  128D1 5.根据实际情况安装 &#160; 破解方法 1、下载算号器（32位系统打开x32字样，64位则打开x64字样的算号器） 2、XP用户请直接打开，Win7用户请右击-管理员身份打开。 3、打开注册机以后先按一下Mem Patch按钮，然后点下图“激活” 4、同意隐私保护 5、在注册机填入申请号 6、选择第二项 7、算号 8、填入序列号，提示激活完成，然后就可以打开了。]]></description>
		<wfw:commentRss>http://kwx.cc/post/2087/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>入手TP-LINK WR703N无线路由器</title>
		<link>http://kwx.cc/post/2070</link>
		<comments>http://kwx.cc/post/2070#comments</comments>
		<pubDate>Thu, 15 Mar 2012 11:31:25 +0000</pubDate>
		<dc:creator>kwx</dc:creator>
				<category><![CDATA[体验记录]]></category>
		<category><![CDATA[TP-LINK]]></category>
		<category><![CDATA[WR703N]]></category>

		<guid isPermaLink="false">http://kwx.cc/?p=2070</guid>
		<description><![CDATA[学校的网络每到晚上10点就会断开，光用手机直接上网，感觉不太爽，为此单独购买了一个TP-LINK WR703N迷你3G路由器，入手价99元。 光买了路由器还不能实现3G功能，还需要去买个 3G上网卡（大概200元左右）接在路由器上，如图： 买一个 15元包300M流量的联通准3G卡，配置下路由器就可以上网了，晚上睡觉前还可以拿这平板打开下电脑的网页，看看新闻或技术文章，感觉不错哈。 &#160;]]></description>
		<wfw:commentRss>http://kwx.cc/post/2070/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>腾讯再改QQ等级加速规则</title>
		<link>http://kwx.cc/post/2068</link>
		<comments>http://kwx.cc/post/2068#comments</comments>
		<pubDate>Thu, 08 Mar 2012 13:10:34 +0000</pubDate>
		<dc:creator>kwx</dc:creator>
				<category><![CDATA[体验记录]]></category>
		<category><![CDATA[QQ等级]]></category>
		<category><![CDATA[腾讯]]></category>

		<guid isPermaLink="false">http://kwx.cc/?p=2068</guid>
		<description><![CDATA[2012年3月8日当天，腾讯再改了QQ等级加速规则。 原来与5个好友或群互动、发送50条消息、连续登录达6天、使用最新版QQ、使用5个Q+应用这几项基础加速方式(每个0.5天)都已经取消，只剩下了在线时长满5小时、QQ和Q+同时在线5小时、非隐身时长满2小时这三项，最多加速时间也从2.2天减少为1.7天。额外服务加速则只去掉了使用QQ输入法，另外四项QQ电脑管家(1天)、腾讯微博(0.1天)、QQ会员(最多2.0倍)、超级QQ(最多1.9倍)依然存在。 精简下来看起来舒服了，但是给一些热爱“面子”的朋友们又设上了一道坎。]]></description>
		<wfw:commentRss>http://kwx.cc/post/2068/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>试水</title>
		<link>http://kwx.cc/post/2062</link>
		<comments>http://kwx.cc/post/2062#comments</comments>
		<pubDate>Tue, 14 Feb 2012 08:02:36 +0000</pubDate>
		<dc:creator>kwx</dc:creator>
				<category><![CDATA[杂谈语录]]></category>
		<category><![CDATA[idc]]></category>
		<category><![CDATA[主机]]></category>

		<guid isPermaLink="false">http://kwx.cc/?p=2062</guid>
		<description><![CDATA[最近也试水IDC了，虽然知道这行存在各种危险性，如DDoS，或各种CC攻击，不过抱着好奇的心理还是挤进去了。 做One Man IDC算是小时候的梦想吧。虽然初期投入并不是很大，经验也不多，经验需要积累，资金需要周转，硬顶着头皮做了，虽然并不容易。做好每一件事都不容易。 从2011年12月开始运营，现在的客户相比其它One Man IDC来说也不算多。不过最近也遇到几件荒唐事哈。 1、网站被诽谤 2012年2月初，wordpress.org.cn有个叫“无限空间专用”的用户，根本没有买过我站主机，诽谤我和多家无辜主机商是骗子。事后叫其交出证据，他没提供，目前被wordpress.org.cn封禁。 相关截图： 2、DDoS 所有主机商都怕这个，它的隐蔽性、破坏性可想而知。正好，我的香港节点主机中招。导致临时需要关闭香港节点。 各大主机商，谁不是从各种折磨中出来的？希望自己的主机能够在后期平平安安，一路走下去哈。 &#160;]]></description>
		<wfw:commentRss>http://kwx.cc/post/2062/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>93.tc域名已出售</title>
		<link>http://kwx.cc/post/2058</link>
		<comments>http://kwx.cc/post/2058#comments</comments>
		<pubDate>Tue, 14 Feb 2012 01:00:28 +0000</pubDate>
		<dc:creator>kwx</dc:creator>
				<category><![CDATA[建站相关]]></category>
		<category><![CDATA[出售]]></category>
		<category><![CDATA[域名]]></category>

		<guid isPermaLink="false">http://kwx.cc/?p=2058</guid>
		<description><![CDATA[因为个人需要，所以把2011年8月入手的93.tc域名出售了。 原来的“P.93.TC 免费图床”，地址由“p.93.tc”更换为“p.kwxjh.net”，数据都还在哈。短网址服务的话，已经不是本人提供了。]]></description>
		<wfw:commentRss>http://kwx.cc/post/2058/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>通过Mysql批量替换WordPress的附件地址</title>
		<link>http://kwx.cc/post/2056</link>
		<comments>http://kwx.cc/post/2056#comments</comments>
		<pubDate>Sun, 22 Jan 2012 03:57:52 +0000</pubDate>
		<dc:creator>kwx</dc:creator>
				<category><![CDATA[PHP相关]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://kwx.cc/?p=2056</guid>
		<description><![CDATA[WordPress的附件都是以绝对连接形式存储的，所以在更换Wordpress的域名后，更换前的附件或图片连接都会失效。 这时无需借助插件，进入Wordpress所在的数据库，执行以下语句，即可批量替换。 以下演示说明：旧地址：http://www.kwx.gd/ 新地址：http://www.kwx.cc/ 在SQL中执行以下语句（请注意备份）： update wp_posts set post_content=replace(post_content,’http://www.kwx.gd/’,’http://www.kwx.cc/’) 相关语法如下：UPDATE ‘表名’ SET ‘字段’ = REPLACE(’字段’,’待替换内容’,’替换值’); 执行完毕后即可。]]></description>
		<wfw:commentRss>http://kwx.cc/post/2056/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决WHMCS的时区时间设置</title>
		<link>http://kwx.cc/post/2054</link>
		<comments>http://kwx.cc/post/2054#comments</comments>
		<pubDate>Wed, 18 Jan 2012 06:56:44 +0000</pubDate>
		<dc:creator>kwx</dc:creator>
				<category><![CDATA[PHP相关]]></category>
		<category><![CDATA[WHMCS]]></category>

		<guid isPermaLink="false">http://kwx.cc/?p=2054</guid>
		<description><![CDATA[最近使用国外的WHMCS面板的时候，发现时间有点问题，在网上找了下发现了解决办法。 编辑configuration.php文件，在php区块最后位置加上 date_default_timezone_set('Asia/Shanghai'); 哦也，问题解决。]]></description>
		<wfw:commentRss>http://kwx.cc/post/2054/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

