<?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[安装memcache到Centos 5.3]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Sat, 23 Jan 2010 06:55:45 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	我的版本为Centos Release 5.3 (Final)<br/>使用这个命令可以知道你的Linux版本<br/>cat /etc/redhat-release<br/><br/><br/>首先要安装libevent库。<br/>cd /usr/local/src<br/>curl -O http://monkey.org/~provos/libevent-1.4.10-stable.tar.gz<br/>tar xzvf libevent-1.4.10-stable.tar.gz<br/>cd libevent-1.4.10-stable<br/>./configure --prefix=/usr/local<br/>make<br/>make install<br/><br/>接下来就是安装memcached<br/>Hosting in Chinese<br/><br/>cd /usr/local/src<br/>curl -O http://www.danga.com/memcached/dist/memcached-1.2.8.tar.gz<br/>tar xzvf memcached-1.2.8.tar.gz<br/>cd memcached-1.2.8<br/>LDFLAGS=&#039;-Wl,--rpath /usr/local/lib&#039; ./configure --prefix=/usr/local<br/>make<br/>make install<br/><br/>安装完毕后，用下面这个命令以用户root来运行memcache<br/>memcached -u root -d -m 64 -l 192.168.0.101 -p 11211<br/>root 为所执行的用户<br/>64 为缓存大小64M<br/>192.168.0.101 为所在的服务器IP地址<br/>11211 是所在端口<br/><br/>要关闭memcache<br/>pkill memcached<br/><br/>接下来是安装php-pecl-memcache<br/>一个命令就可以。<br/>yum install php-pecl-memcache<br/><br/>还是需要php扩展，就用下面这个命令<br/>pecl install memcache<br/><br/>接下来重启apache，用phpinfo()查看，应该可以看到memcache的部分，如果没有的话，检查这里的设置：<br/>/etc/php.ini加上了 extension=memcache.so<br/>当然也要确认memcache.so是否存在，是否在/usr/lib/php/modules/下，如果不是，那么找到它，并用完整路径表示。<br/><br/>查看memcache的运行情况，可以用memcache.php来查看。<br/>当让也要有web 程序支持才有用，比如我用的phpbb 3就可以使用memcache，具体方法参考这里<br/><a href="http://www.yinfor.com/blog/archives/2009/06/enable_memcache_on_phpbb_3.html" target="_blank"><br/>这里</a><br/><br/>看来命中率还是很高的。
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] 安装memcache到Centos 5.3]]></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>